hummm...
The Ace does not turn to 1 if you go over 21... for example I had an ace hearts and and a 6 of spade, dealer drawn a 6 of clover for me and I busted.
Enjoy, and let me know if you find any errors/mistakes. This is a follow up form a previously uploaded game with a few code errors, that have since been resolved. Peace out.
hummm...
The Ace does not turn to 1 if you go over 21... for example I had an ace hearts and and a 6 of spade, dealer drawn a 6 of clover for me and I busted.
The dealer is cheating
The interface is somewhat ho-hum; but that might be just getting accustomed to programming for a flash player. But this gives the "dealer" far too much of an advantage. In casino play, which I think this is supposed to emulate, the dealer is required to draw to 16 and stand on seventeen. He does not get to base his decision on the player's hand. (I understand that in informal rules, the dealer can use discretion but doesn't get to know the player's hand.) The way you have this set up the computer will stand on a low hand if it beats a player's hand when the player has opted to let the dealer risk busting and will hit an 18 or 19 if the player has 20. In essence, the computer is cheating and not allowing a close to fair chance of winning.
The dealer has this advantage on purpose, as this is the way i used to play with friends, and we never found it too hard. But if more people agree with the dealer having a ">17" cap then i will change it for you. And if you have any ideas to make the interface less shit, please let me know. :)
One Error
Everyone loves Blackjack, but I have one problem:
In your game, if I am dealt a Black Jack, and the dealer turns up 16, then hits a 5, we draw at 21. According to the real rules though, I would win once the dealer turned over 16.
sorry about that i will get to work on the problem immediately :) thanks for the review