This game will prompt the user to enter one of America's 50 states. If the state is successfully typed, it will be displayed on the USA map. If the user inputs an incorrect state or misspells it, nothing happens and a pop-up window appears asking them to guess another state. Each time you enter a correct state, a pop-up will display how many states you got correct out of 50. I built this game using python, pandas, and turtles. Turtle is a pre-installed Python module that allows users to draw images and shapes on a virtual canvas. As mentioned above, if the user enters the correct state, it will be displayed on the USA map. It will be displayed using turtle. As such, the "penup" method in turtle will write the state in its' appropriate coordinates on the map. In addition to place the state in its appropriate coordinates, pandas come into play. A CSV file is my source code that has all the American States coordinates, so pandas will read the CSV file and place the state on the map.
Log in or sign up for Devpost to join the conversation.