/brazil_states

Python game to guess the states of Brazil, using pandas and turtle libs

Primary LanguagePython

Brazil States Game

  • This project is a game to help you learn the states of Brazil.
  • The goal is to correctly identify all the states on the map.

Day 25 Project

This project is from Day 25 of the course "100 Days of Code: The Complete Python Pro Bootcamp" by Angela Yu.

Overview

  • The Brazil States Game uses Python's turtle graphics module to display a map of Brazil and pandas to handle data.
  • The game prompts the user to input the names of Brazilian states and places the names on the map if they are correct.
  • If the user types "Sair", the game ends and saves the states that were not guessed to a CSV file.

Requirements

  • Python
  • turtle module
  • pandas module

How to Run the Project

  1. Ensure you have the map image (mapa-do-brasil.gif) and the CSV file (26_estados_1_df.csv) in the same directory as your script.
  2. Run the script using Python:
    python brasil.py
  3. The game window will open with the map of Brazil.
  4. Input the name of the states in the prompt that appears. If you wish to stop the game, type "Sair".
  5. If you type "Sair," a CSV file named estados_para_aprender.csv will be created with the names of the states you didn't guess correctly.

Enjoy the game and improve your knowledge of the states of Brazil!