Inspiration: This is a card game that I play often with my grandmother, however it is not commonly known

What it does: This python programs runs a card game in the terminal where the user can input cards to drop, where to pick cards up from, and how to knock, as well as running the computer side.

How we built it: I used python rather than other programs as it is very useful for user inputs. This project really pushed my ability to trace the memory as there are many if statements.

Challenges we ran into: There were some issues getting the computer to be as smart as desired. It also would have been better in some sort of GUI or animation but I was unable to get a good handle on python GUI building. There were also some issues trying to make the game "people proof", so there are some spots where it is assumed that the user will correctly input the card or action on the first try. We tried to make Poker, and unfortunately just ran out of time.

Accomplishments that we're proud of: Overall I am proud of how well the player side works. Asides from certain actions needing to be typed on the first try, I am proud of being able to knock, and have recursion in certain functions that do successfully "people proof" at least parts of the game.

What we learned: I gained a much deeper understanding of recursion and memory tracing. I also got more comfortable using multiple files in python. This code could have been object oriented, however I am not as comfortable with classes in python, but if I choose to develop it further, that may be one of the next steps.

What's next for Thirty One: This game will probably become a personal project that I try to get the computer a bit smarter at, as well as maybe add various levels of difficulty. I would like to show this to my grandmother as I think it would amaze her what can be done on computers. We would also like to implement more card games in the future, maybe get poker working, to be able to create a bunch of games that can be played.

Built With

Share this project:

Updates