Skip to content

senabibi/Us_State_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Us State Game

Playing a game on a manually created United States map using Pandas and Turtle in Python offers an enjoyable and educational experience. You can further enhance the project by improving graphics or adding new mechanics. Such projects combine learning and fun, providing an excellent way to develop your Python skills.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Here's a video demonstrating the US State Game Simulator in action:

[Pong Game Demo

This project presents a unique fusion of data manipulation and game development, making learning both informative and entertaining. Leveraging Python's powerful Pandas and Turtle libraries, I crafted an engaging and educational game centered around the United States. The game involves matching the names of U.S. states on a custom map with their corresponding x and y coordinates extracted from a CSV data file. This dynamic integration of data from the real world and interactive gameplay adds a layer of excitement and relevance to the learning process. Players not only improve their Python programming skills but also gain practical experience in data utilization.

As you navigate the game, the challenge lies in correctly associating state names with their positions on the map, all while managing your allotted attempts wisely. The project's ability to seamlessly blend the practical aspects of data retrieval and the enjoyable elements of gaming enhances the overall learning experience. It not only broadens Python proficiency but also fosters an understanding of the practical applications of programming skills. By bridging the worlds of data analysis and game development, this project has evolved into an engaging, fun, and informative endeavor that promises both enjoyment and knowledge.

(back to top)

Built With

  • Python
  • Replit
  • PYCHARM
  • Vısual Studio Code
  • BRAVE
  • Pandas

(back to top)

Getting Started

This section provides instructions on how to set up and run the project locally. Please follow these steps to get your environment ready.

Prerequisites

Before you begin with the US State Game project, make sure you have the following prerequisites installed and ready on your system:

  • Python: Python is the primary requirement for running this project. If you haven't already, ensure you have Python installed on your system.

  • Replit: This project is designed to work seamlessly with Replit, a cloud-based development platform. You'll need a Replit account and familiarity with using the platform to get the most out of the project.

  • PyCharm: If you prefer to run the project locally using PyCharm, make sure you have PyCharm installed on your system.

  • Turtle Graphics Library: Ensure that you have the Turtle graphics library installed, which is typically included with Python. Turtle graphics will be used to create the interactive map in the game.

  • Pandas Library: The game relies on the Pandas library for data handling and extraction. Make sure you have Pandas installed as it will be used to manage the data file containing state coordinates.

  • Data File: The project utilizes a CSV data file that contains state names along with their respective x and y coordinates. Ensure you have access to this data file for a smooth gaming experience.

These prerequisites will enable you to run and enjoy the US State Game project, where you'll have the opportunity to learn and have fun by matching state names with their map positions.

Installation

Follow these steps to install and run the US State Game project, which combines Python programming, Turtle graphics, and data handling with Pandas:

  1. Python Installation:

    • Ensure you have Python installed on your system. If not, download and install Python from the official Python website.
  2. Replit Usage:

    • You can easily run this project on Replit by following these steps:
      • Create a Replit account if you don't have one.
      • Import the US State Game project into Replit or create a new Replit project.
      • Open the main Python script in Replit and run it.
  3. PyCharm Installation and Usage:

    • Download and install PyCharm from the official website.
    • Open the US State Game project in PyCharm.
    • Configure PyCharm to use the installed Python interpreter.
  4. Pandas Library:

    • The US State Game project utilizes the Pandas library for data handling and extraction. Ensure you have Pandas installed to manage the data file containing state coordinates. You can install Pandas using pip:
      pip install pandas
      
  5. Data File:

    • To run the game effectively, make sure you have access to the data file, a CSV that contains state names and their corresponding x and y coordinates.

By following these steps, you can run the US State Game project either in Replit or locally in PyCharm, depending on your preference. This project provides an enjoyable way to enhance your Python skills while having fun with U.S. state geography.

(back to top)

Usage

To play the US State Game project and set up your environment for an interactive and educational experience, follow these steps:

  1. Python Installation:

    • Ensure that Python is installed on your system. If it's not already installed, you can download and install Python from the official Python website.
  2. Pandas Library and Data File Setup:

    • Start by setting up the Pandas library. You can install it using pip with the following command:
      pip install pandas
      
    • Prepare the data file containing state names and their corresponding x and y coordinates. Ensure the data file is accessible and ready to be used in the project.
  3. Running the Game:

    • Open your terminal or command prompt, navigate to the project's directory, and run the main Python script:
      python us_state_game.py
      
    • This command will launch the US State Game.
  4. Game Objective:

    • Your goal in the US State Game is to match the state names with their correct locations on the map. As you compare the data in the file with the map, the matched data will be displayed on the map.
  5. Enjoy Learning:

    • Have fun while enhancing your knowledge of U.S. state geography. The game not only entertains but also educates, making it an enjoyable learning experience.

By following these steps, you can set up your environment to play the US State Game, where you'll test your knowledge and improve your data handling skills with Pandas while having a great time exploring the map and its details.

(back to top)

Roadmap

  • Python Installation: Enabling Python to be correctly installed for project development.

  • Pandas Library and Data File Setup: Preparing the Pandas library and configuring the data file containing state names and their x and y coordinates.

  • Map Creation: Designing a blank map on which state names and their positions will be displayed.

  • Data Matching: Implementing the logic to match the state names with their correct positions on the map based on the data file.

  • User Interaction: Creating an interactive user interface for input and feedback.

  • Scoring System: Developing a scoring system to record the progress and provide an engaging gaming experience.

  • Game Over Condition: Implementing a condition for successfully completing the game.

  • Testing and Debugging: Rigorously testing the game, addressing any potential issues or bugs.

  • Documentation: Preparing user documentation that explains how to play the game and make the most of the project.

This roadmap outlines a step-by-step plan for the development of the US State Game project, ensuring that it's both educational and entertaining. It covers initial setup, data handling, user interaction, scoring, and testing, creating an interactive experience for players.

(sayfa başına dön)

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this project better, please fork the repository and create a pull request. You can also simply open an issue with the "enhancement" tag. Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Nursena Bitirgen - LinkedIn

Project Link: https://github.com/senabibi/Us_State_Game

(back to top)

Acknowledgments

The development of the US State Game project was made possible thanks to the following resources and skills:

  • Python Knowledge: Special thanks to the Python programming language for its robust and versatile capabilities that formed the backbone of this project.
  • Object-Oriented Programming (OOP) Expertise: Acknowledgment to the principles of OOP, which played a pivotal role in structuring the project's code and logic.
  • Data Structure Proficiency: Gratitude for the knowledge of data structures, which was essential for handling and matching the state data from the data file.
  • Turtle Graphics Proficiency: Special acknowledgment for the proficiency in using Turtle graphics, which brought the visual elements of the project to life and made the map interactive.
  • Pandas Library: The Pandas library, known for its data manipulation capabilities, was instrumental in managing and matching state data from the data file.
  • CSV Data File: A special mention to the data file that contained state names and their x and y coordinates, serving as the foundation of the game.
  • Replit Proficiency: The ability to work with Replit was instrumental in the development of this project and allowed for a smooth development experience.

(sayfa başına dön)

About

Python Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages