Welcome to the Mini Python Projects! This repository features several mini-games and programs developed in Python. These projects demonstrate the use of popular libraries such as Tkinter for graphical user interfaces (GUIs) and Turtle for graphics.
- Color Game
- Contact Management System
- Dice Rolling Game
- Text Adventure Game
- Turtle Graphics
- Star Pyramid Generator
- Rock, Paper, Scissors Game
Test your reflexes and concentration! The Color Game challenges players to type the color of the text displayed on the screen—not the word itself. You have 30 seconds to score as many correct answers as possible.
- Real-time score tracking
- High score storage
- Simple and engaging GUI built with Tkinter
- Launch the game.
- Press Enter to start.
- Type the color of the displayed text (not the word) as fast as you can!
Manage your personal or professional contacts efficiently with this program. You can add, search, delete, and view all contacts.
- Add contacts with details such as name, age, and email.
- Validate email formats automatically.
- Save and load contacts using a JSON file for persistent storage.
- Run the program.
- Follow the interactive prompts to manage your contacts.
Compete against friends in this simple but thrilling dice-rolling game. Roll the dice, avoid penalties, and be the first to reach the target score.
- Supports 2 to 4 players
- Automatic score tracking
- Rolling a 1 resets the current player's turn score
- Input the number of players and their names.
- Set a target score.
- Take turns rolling the dice until a player reaches the target score.
Dive into a world of choices with this text-based adventure game. Every decision you make leads to a unique outcome.
- Interactive story with multiple endings
- Player-driven choices that affect the storyline
- Launch the program.
- Follow the text prompts and make choices by typing the corresponding options.
Unleash your creativity with Turtle Graphics, which generates vibrant spirals using Python's built-in Turtle library.
- Randomized colors for a dynamic visual display
- Easy to modify and expand with your own designs
- Run the script.
- Watch the colorful spiral unfold!
Create aesthetically pleasing star pyramids based on the height you specify. This program is perfect for understanding loops and patterns in Python.
- User-defined pyramid height
- Clean and centered alignment
- Run the program.
- Enter the desired height for your pyramid.
- Generate more pyramids or quit the program.
A simple and interactive Rock, Paper, Scissors game built using Python's tkinter library. Play against the computer and keep track of your score while enjoying a fun GUI-based experience!
- User-Friendly Interface: Built with tkinter, making it easy to use for all ages.
- Score Tracking: Displays real-time scores for both the user and the computer.
- Replayable: Play as many rounds as you want, with scores updated after each game.
- Dynamic Outcome Display: Shows the computer's choice and the result of each round.
- Choose one of the three options by clicking the corresponding button:
- Rock
- Paper
- Scissors
- The computer will randomly select its choice.
- The game will display the computer's choice and the result:
- "You Win!" if you win the round.
- "You Lose!" if the computer wins the round.
- "It's a Tie!" if both choices are the same.
- Scores will update automatically.
Make sure you have the following:
- Python 3.x installed on your machine
- Required libraries (all are standard in Python):
- Tkinter (for GUI)
- Turtle (for graphics)
- JSON (for saving data)
-
Clone this repository or download the project files:
git clone <repository-link>
-
Open a terminal or command prompt.
-
Navigate to the directory containing the scripts.
To run any game or program, use the following command:
python <filename>.pyReplace with the name of the script you want to run, e.g., color_game.py.
This project is licensed under the MIT License.