Skip to content

VaidasTheDev/Blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Releases

No releases published

Packages

No packages published

Languages