dealer wasn't playing because of a logic error, fixed
This commit is contained in:
AnthonyMichaelTDM
2022-02-27 23:44:18 -08:00
parent 6ba2139574
commit 23153f8cbd

View File

@@ -401,8 +401,10 @@ impl<'a> GAME<'a> {
print!("{}", player_hands_message);
println!("{} Hand:\t{}", player.get_name(), player.hand_as_string(true));
if player.bet == 0 { //player is out of money
break; //exit turn loop
if let PlayerType::Player = player.player_type { //player isn't the dealer
if player.bet == 0 {//player is out of money
break;//exit turn loop
}
}
//play through turn