Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 437 Bytes

README.rdoc

File metadata and controls

14 lines (8 loc) · 437 Bytes

BlackJack

This is a simple Rails application where you can play blackJack with the dealer(SYSTEM).

All game’s data is stored in cards table in the database. Only the dealt cards are stored in database.

The class Game handles all the logic in the game. From player’s and dealer’s score to deciding who is the winner.

There are three API end-points:

  1. index (to start the game)

  2. hit (blackjack move)

  3. stand (blackjack move)