Share your repls and programming experiences

← Back to all posts
Blackjack w/ Python - Update!

First of all, I am not claiming that this is 100% my own code. It is around half my code.

Blackjack! Who doesn't love it (and more importantly, winning money with it!)? Practice your skills here to improve, and if you are just getting started, play with our AI to up your game.

For those who are not gamblers, blackjack is played with two players, you and a dealer. Your aim is to get as close to 21 without going over. You can either [h]it or [s]tand. Hitting means you draw a card, while stand mens you stop.

Choose how much to bet with a local chip counter! Start off with 100 and see how far you can go!

Thanks, and if you liked this project, share it with others!


Thanks for the update, it is of a big use. I am sure that a lot of users didn't know about this, and now they can be guided, or use the same code that you posted above. For the beginners, I am sure that this will be very helpful, I remember how hard it was at the start of the studying process to find the answer to some questions. Luckily, I got a lot of experience playing here, and this was a critical point in my life, a turning point, from when everything changed and I started to achieve my goals which I worked for a long time.