I was just going through that page again and I notice something missing.
Some casino's I've played in have a 5 card win.. That isn't mentioned here.
Some casino's I've played (not all) have it so that If you draw three more cards for a total of 5 in the hand, without busting, you automatically win.
I think, I'm going to make an object to contain settings, where early surrender, 5 card win, and a couple other settings can be tweaked and stored. Including how many decks we're playing with.
Alright, here's a stupid question: If all the players are standing (or busted or even-moneyed), can the dealer keep hitting until he's satisfied? Or must he stand when no one else is left actively playing?
He can, but since there are no other players playing and there is no advantage or any possibility of winning more, there is no reason of doing something like that :P
if, by the time the dealer finally reaches his turn, all of the other players are elminated, his hand is not played. If other players are standing, and he does not beat their hands, he must play, hitting soft 17, and standing on hard 17. If the otehr players have 16 or less and the dealer has a soft 17, then yes, he does hit. His rules are he must hit soft 17 and stand on hard 17. This does give the players the chance that he may bust.
I have to say "WOW!!!"... I could never imagine somebody doing so many things ( classes, maps, enumerators etc ) just for a blackjack game... You really enjoy doing this don't you?? :D
One tiny question:
How did you change the && operator with "and" and the || operator with "or" ???
return left.bust() or ((left.value() < right.value()) and !right.bust());