Blackjack/21 - Card Game with Bot
An addictive blackjack sim.
Greetings, 4 people who sort by new.
It's 1:30am here and I'm tired so here's my first real game, Blackjack.
Please credit me if you use any of the code in here (as if).
If you've never played Blackjack (or "21", as it's occasionally called), this is a brief guide explaining the basics.
The idea of the game is to draw random cards (which represent points) from a deck and whoever's score is closest to 21 (without going over) wins.
To "hit" means to ask for a new card. Aces are worth 1 point, a 2 is worth 2 points, and so on. Cards that have faces (i.e. kings, jacks, queens) are all worth 10 points.
To "stand" means to end your turn...permanently. Once you think that your score is close enough to 21, you should "stand" and skip your turns. However, you cannot un-stand, so make sure that you're very close before standing (around 16-21 points is a good range to stand).
Now that you understand the game, here's some info about the code.
So far, I've only found one.
If you stand on your first turn (which you should never, BTW), it does some wacky things.
The Enemy AI will automatically stand if it's score is higher than 15.
Use this info to your advantage.
Not much to add here, so IDK.