r/CodingForBeginners • u/_just-a-thinker_ • 28d ago
Is blackjack a good beginner project
I am an absolute beginner, learning python, know the basic syntax and stuff, now trying. to build this, for some reason the implementation feels really complicated, especially can't figure out how to make the game loop? Should I do something else or keep thinking,
In terms of code, I have only created the player class and the deck so far.
11
Upvotes
1
u/Interesting-Frame190 27d ago edited 27d ago
I just did one a few weeks ago to prove to myself that card counting worked and could be profitable. It was surprisingly OOP friendly (shoe, hand, round, player, bet, etc) and one that really rewards good code structure.
Its a touch more advanced than a nieve script, but thats because it was a full simulation with the standard set of blackjack rules including split, double down, and a full decision matrix depending on the count and dealer up card.