qWeX23 / BlackJackSEM

this is the thing for SEM Black Jack for class and stuff so yeah welcome
0 stars 0 forks source link

DealerTurn method in table class #31

Closed PaddyLevitt closed 8 years ago

PaddyLevitt commented 8 years ago

The dealer should always stay on 17 or higher regardless of the player having a better hand. Currently if the dealer's hand is lower than the player's the dealer will take a hit until he/she busts.

PaddyLevitt commented 8 years ago

Fixed this method so the dealer will only take a hit if his/her hand is below 17 and the player's hand is better.

PaddyLevitt commented 8 years ago

Further tweeked so that dealer always hits if below 16 and stays if above 17, regardless of player hand value.