This is a simple Twenty-One game. I don't know why I chose to make it, I don't really know the rules for Twenty-One. So if some of the rules are wrong, please let me know. Also, this is a simple version, it doesn't contain advanced rules such as 'split'. Enjoy.
Rules: The goal of this game is to have you 'hand' of cards equal to 21, or at least closer to 21 than your opponents (without getting more than 21).
eg. (Get more than 21 and you lose automatically.
Get higher than your opponent without going over 21 and you win.
Get less than your opponent and you lose.)
Most cards count as their numerical value.
Ace counts as 1 or 11 (the best value for the situation).
Jack, Queen and King count as 10.
You have the choice to 'Hit' (take another card) or 'Stand/Stay' (don't take another card, and let the opponent have their turn).
After your opponents turn the winner is announced (or it's a draw if both players have the same score).
If you use this engine, I would like some credit (although not required).
Edited by $pecter, 11 July 2008 - 11:20 AM.