Inspiration
We wanted to learn the pygames module and thought blackjack was a good way to learn the basics.
What it does
Runs pygame window that shows the user their cards and one of the dealers two cards, allows them to hit(get another card) or stay, and compares the value of the user's cards to the value of the dealer's cards. Depending on if the player/dealer wins, busts, or loses a message will be displayed then ask the user if they want to play again.
How we built it
We built a basic text-based version of blackjack using classes in python to create a card, deck, and hand class. Then after getting the basic functionality working we used pygames to create a GUI on top of that base code.
Challenges we ran into
Learning how to use github as a team was challenging so, we ran into a couple of problems with people merging/pushing/pulling at weird times.
Accomplishments that we're proud of
We were very happy the first time we were able to display the card images with the correct scaling and positioning.
What we learned
We learned the basics of pygames, including drawing images and text to the screen as well as updating the things we have drawn to the screen.
What's next for Blackjack
Need to add fluid animations to the game, and integrate more of the normal blackjack functionality into our code such as splitting and betting.
Built With
- pygames
- python

Log in or sign up for Devpost to join the conversation.