https://github.com/jalfr3d/geometry-game-python
Little geometry game make in python
https://github.com/jalfr3d/geometry-game-python
geometry-game python python-app python-game turtle-graphics
Last synced: 4 months ago
JSON representation
Little geometry game make in python
- Host: GitHub
- URL: https://github.com/jalfr3d/geometry-game-python
- Owner: jalfr3d
- License: mit
- Created: 2023-10-12T18:55:44.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-10T19:01:39.000Z (over 1 year ago)
- Last Synced: 2025-01-08T13:37:07.743Z (6 months ago)
- Topics: geometry-game, python, python-app, python-game, turtle-graphics
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Geometry Game - Python
## Overview
This Python-based geometry game is a fun and interactive way to learn about points, rectangles, and geometric concepts. The game generates a random rectangle and challenges the player to guess whether a given point is inside the rectangle and to estimate the area of the rectangle. It's a great tool for improving geometry knowledge while having fun.
## Features
- **Random Rectangle**: A random rectangle is generated for each game session with random coordinates.
- **Point Guess**: Players can guess whether a given point is inside the rectangle.
- **Area Estimation**: Players can estimate the area of the rectangle.
- **Visual Representation**: The game provides a visual representation of the rectangle and the guessed point on a canvas using the Turtle graphics library.
## How It Works
1. Run the script using Python.
2. The game generates a random rectangle with random coordinates.
3. The player is prompted to guess a point's X and Y coordinates.
4. The player is prompted to estimate the area of the rectangle.
5. The game provides feedback on whether the point is inside the rectangle and calculates the difference between the estimated and actual rectangle area.
6. The visual representation of the rectangle and the guessed point is displayed using Turtle graphics.
7. The player can continue to play as many rounds as desired.
## Prerequisites
Before playing the game, ensure you have the following:
- Python installed on your system.
- The Turtle graphics library, which is included in Python's standard library.
## Notes
- This game is designed to be both entertaining and educational, making it suitable for students, learners, and anyone interested in geometry.
- The game provides immediate feedback, allowing players to test their geometry knowledge and learn from their guesses.
- You can modify the game by changing the random generation parameters, such as the range of coordinates for the rectangle.
- Feel free to enhance the game by adding more features or levels for a more challenging experience.
That's it! Have fun playing the Geometry Game and improving your geometry skills while enjoying an interactive experience.
## License
This project is licensed under the MIT License. You are free to use and modify the code for your own purposes.