Skip to content

Object orientated solution to the blackjack problem set in chapter 8 of the tutorial found at www.learncpp.com

Notifications You must be signed in to change notification settings

DJWalker42/blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#blackjack

##Blackjack card game written in modern(ish) C++

Provides an object orientated solution to question 4, chapter 8, of the C++ tutorial found at learncpp.com. This borrows heavily from the code found in that tutorial written by someone called Alex.

###Issues

  1. Currently does not take into account Blackjack (ace and a picture) on the first deal.
  2. Aces only have a value of 11. They should have a value of one if a player is going bust with an ace in their hand.

###Fixes

  1. Should be a trivial fix; some way of recording Blackjack (owned by the Player) and checking for it later on.
  2. This is quite involved. One strategy would be to scan through a player's hand if they are going bust and set the first Ace thay encounter to a value of one. This change would need to be recorded such that if a player is going bust again the next ace in the hand, if they have one, is set to a value of one, and so on.

About

Object orientated solution to the blackjack problem set in chapter 8 of the tutorial found at www.learncpp.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages