I had been planning what to do for a hackathon starting on Monday morning. However, when I went to my daily classroom advisory, I noticed that my advisor and my fellow advisories were playing a card game called BS, which is based on luck and psychology. This gave me the bright idea to turn it into a game using Python and its random function to create a bot that can play with you, as my hackathon submission.

In this game, you start with a card, and then you can either BS (lie) and claim you have a different card than you actually do, or you can tell the truth and reveal the actual card. If the bot thinks you're lying and you are indeed lying, the bot gains a card, and you lose one. On the other hand, if the bot thinks you're lying, but you're telling the truth, the bot loses a card, and you gain one. The goal is to be the first to reach zero cards to win.

My friend and I were excited about this idea and decided to implement it using Python, specifically utilizing the tkinter library for the user interface and the random function for card distribution.

However, we faced several challenges during the development process. It had been a while since we had used tkinter, not since our 7th-grade days, so we had to watch tutorials and refer to guides to reacquaint ourselves with it and apply it to our code.

Despite the time constraints (the hackathon started for us on Friday at 11 am, and we were in school at the time, so we had to miss a full day of coding), we are proud of our project's functionality. We were able to complete it and make it as enjoyable as possible. This project taught us many new things about Python's tkinter function, and we significantly increased our knowledge of how to use it effectively.

Built With

Share this project:

Updates