Three Card Poker CLI Game
Description:
Application that simulates three card poker. Allows user to play as many rounds as they'd like or until money runs out. Persists final user purse values to leaderboard table. Then lets user decide to remove their game history from leaderboard and/or reset leaderboard.
How to start game:
After forking & cloning, run the following in terminal while in project root directory: 'bundle install' 'rake db:migrate' 'ruby runner.rb'
Three card poker rules:
- place an ante to see your hand
- place an optional pair plus bet for the pair plus bonus (payout: pair 1 to 1, flush 4 to 1, straight: 5 to 1, three of a kind: 30 to 1, straight flush: 40 to 1)
- you have an option to play or fold based on if you think you will beat the dealer
- pair plus pays out regardless of a fold
- if you beat the dealer, you win 1 to 1 on the ante and play bet
- if the dealer wins, you lose the ante and the play
- Cards will be given in format like "KH" (CardSuit) which corresponds to "King of Hearts," and "0D" the "0" refers to the "10" card, so this specifc card would correspond with "10 of Diamonds".
Prerequisites/Gems:
activerecord, sinatra-activerecord, sqlite3, rake, require_all, rest-client
Built With:
Ruby(2.6.1), ActiveRecord(6.0), Sqlite3(1.4)
Authors:
Evan Greer, Jeremy Gray
Acknowledgments:
Deck of Cards API (http://deckofcardsapi.com/)