just a validation thing, when i entered "25aadfasf" as my bid it said it was valid.
Maybe check for string.length != 2 etc.
Seems to work nicely
Could do with some fancy ascii formating tho.
stuff like
_____ _ ___ _
|_ _|__ _ _(_) _ \___| |_____ _ _
| |/ _ \ '_| | _/ _ \ / / -_) '_|
|_|\___/_| |_|_| \___/_\_\___|_|
Player: Gorman
+-----+ +-----+ +-----+
|3 | |8 | |4 |
| | | | | |
| <3 | | <> | | ^ |
| | | | | Y |
| 3| | 8| | 4|
+-----+ +-----+ +-----+
Total: 15 TC: 4750
Dealer: 10
EDIT:
Originally Posted by
Hanz
If only I knew how to play BlackJack....
The aim is to get 21 exactly.
If you go over 21 you AUTOMATICALLY LOSE.
If you are playing and you get a high number, say 19, and you dont want to draw another card because you will probably bust, you can opt not to.
Which means the dealer plays, and if he gets higher or equal to you (but not over 21), then the house wins, and you lose
So basically, try to get 21 or less, but dont go too far less or the dealer will probably beat you.
Last edited by Gorman; Oct 23, 2009 at 04:46 PM.