Skip to content

Yufei-Ge/BlackJackGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

c++ exercise 2: blackJack Game

HELLO! This is about C++ class exercise.

It is a card game between human and computer;) see who wins?

General Procedure:
      Welcome to the blackjack game!
      Player(you) is dealt with 2 cards;
      Casino is dealt with 1 card;

      Would player like to draw?
         if No: Casino gets to draw.(Must stop when the last draw makes total > 16)
         when casino.total>21, casino busted.
         when casino.total=21, casino wins.

         if Yes: Continue for player to draw.
         when player.total > 21: player is busted;
         when casino.total && player.total == 21 , they have a push situation;
         when player.total = 21, player wins;
         when casino.total<player.total<21, player wins (same for the other way round

About

BlackJack Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages