Command Line Blackjack
What is Command Line Blackjack?
Command Line Blackjack allows you to play a simple game of blackjack in your command line.
Getting Started
Setup
Ensure you have PostgreSQL on your computer
Install necessary gems
$ gem install pg
$ gem install colorize
Run the postgres server
$ postgres -D /usr/local/var/postgres
Run the setup file
$ ruby db_setup.rb
Begin the game
$ ruby blackjack.rb
Gameplay
The game is a simple game of blackjack. There are two basic commands: 'hit' and 'stay'
When prompted, type the appropriate command asked for and then select enter.
Here are some shots of the game:
The beginning of the game (here you would either type hit or stay based on what you would like to do):
We won a round here!
The high scores table:
Features
- Color card display
- High scores database