This is an interactive Python game where users attempt to name all 28 states and 8 Union Territories (UTs) of India. The program will show an image of the map of India and ask users to input state and UTs names. If a correct name is entered, it will be displayed on the map. The game also generates a file with the names of any states the player missed.
built using
Python
,Pandas
andTurtle
built using
HTML
,CSS
andJavaScript
- Displays a map of India with a blank outline of the states and UTs.
- Allows users to guess states' and UTs' names and shows correct guesses on the map.
- Generates a
names_you_missed.csv
file listing any states or UTs not guessed during the game.
- Python 3.x: Ensure Python is installed. You can download it from Python.org.
- Pandas: Install the
pandas
library for data manipulation:pip install pandas
- Turtle Graphics: The
turtle
module is a standard Python library, so no additional installation is needed.
main.py
: Main game file containing the code to run the game.states_and_uts.csv
: CSV file with state and UT names and their coordinates.map_of_India.gif
: Image of the India map outline used as the game background.
-
Clone the repository: Clone the project to your local machine using Git.
git clone https://github.com/Rahullkumr/GuessIndianStatesAndUTs.git
-
Navigate to the project directory:
cd GuessIndianStatesAndUTs
-
Ensure all required files are in the directory:
main.py
states_and_uts.csv
map_of_India.gif
To start the game, execute the following command:
python main.py
- When the game starts, a prompt will appear asking for a state or UT name.
- Type the name of a state or UT and press Enter.
- If the state/UT name is correct, it will appear on the map at the state's or UT's location.
- Type "Exit" if you want to stop the game early.
- When you exit, a
names_you_missed.csv
file will be created in the project directory, listing any name you did not guess.
- When you exit, a
- Ensure that
map_of_India.gif
is present in the same directory as the code. If it's missing, the game will not display the background map.
- Created by me Rahul Kumar
Enjoy learning and challenging yourself with this Indian states and UTs guessing game!