Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 1.01 KB

README.md

File metadata and controls

22 lines (19 loc) · 1.01 KB

Blackjack

Version 0.1

The game can be played between one player and dealer (computer) through 'main' console.

Functionalities

  • Single-player (player vs. computer)
  • Supported player actions: hit, stand
  • Player has a money balance
  • Game-flow:
     1. Player enters a stake/wager (through console)
     2. Player and dealer are dealt cards. Cards are dealt to the GamePlayers in this order: player, dealer, player
     3. Player chooses their action (hit/stand)
     4. Action Hit: player is dealt a card, and asked to choose next action
     5. Action Stand: dealer is dealt cards until hand score reaches 17 (dealer stands on Soft Ace)
     6. Scores are calculated, compared and if player is a winner, reward is given
     7. Reward: 2.0 x stake (if blackjack: 2.5 x stake)

Flaws

  • No data is saved (no database implementation)
  • Console-based game (no User Interface implementation)
  • Code isn't optimised (has warnings, game-logic isn't optimised)