Python Program: Guess 50 States

By carriekaler Apr17,2024

100 Days of Code: The Complete Python Pro Boot Camp – Day 25 Project

Re-create Sporcle’s 50 States game.

Map of US as background. Pop up asking to user to enter state. It should continue asking to enter a state until user enters ‘Exit.’

There is a csv file that contains each state and x and y coordinates where should be displayed on the map when correctly guessed.

Stores all correct guesses into a list that can be compared to all states so that it will print a file that shows the states that were missed after user enters ‘Exit’.

  1. Choose ‘Open in Replit’
  2. Select ‘Run’ to play/replay the game.
  3. Close the main.py screen. Maximize the output window.
  4. Type in states until you can’t think of any more.
  5. Type ‘Exit’ to stop guessing
  6. Check the file directory to find the ‘States_To_Learn.csv’ file for states that were missed.

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *