Inspiration

What inspired us was one of our author's father used to quiz her about the U.S. presidents while waiting for the bus when she was 7. We decided to create a game similar to let the user practice their knowledge of the U.S. presidents.

What it does

What this game does is it will prompt the user a question asking "Who is the No._ U.S. president?" and if the user gets the answer wrong, they are given a hint that tells them the year the president was in office. The user is given 3 tries to guess the president's name correctly before the game ends. There are three rounds, each structured the same. If the user guesses the president's name correctly for every round, the user wins!

How we built it

The way we built this game was through Python with import, random, list, while-loops, Unicode, if-else statements, and print functions. We created three lists corresponding to the names, start time, and end time of their term. To make the game fun we randomly called the corresponding index of the three lists so that people would answer the president's name out of order. We also used Unicode to include emojis since one of our author's father was the reason we created this idea in the first place by having a man emoji either give an "x" symbol or an "okay" symbol with his arms.

Challenges we ran into

We first wanted to link random integers with functions whose jobs corresponded with a single president. We then realized this would take a very long time and we could not link the random integer with the calling of each function so then we decided to devise another idea by using lists to store the names and the years each president served. One thing that took an embarrassingly long time was when we were trying to index through our lists however we had the incorrect syntax of lists which we eventually figured out!

Accomplishments that we're proud of

We are very proud of how we were able to simplify the codes by being able to reuse code as many times as we wanted with the help of while-loops. We are also proud of how we were able to link these while-loops with the lists we created. The last thing we are proud of is the way we had the skills to turn a childhood game into a fully developed python game through code while making it fun!

What we learned

One thing we learned was the syntax of lists as well as the logic of developing a game through breaking down the process into manageable steps.

What's next for The Presidents Game

The next step for The Presidents Game is adding more U.S. presidents and more hints.

Built With

Share this project:

Updates