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
- Snake Game
- Sudoku Solver
- Number Guessing Game
- Tic-Tac-Toe Game
- Word Jumble
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.
Experience the classic arcade game with this Python implementation! Control a snake to eat food and grow longer while avoiding collisions with yourself. Built with Pygame for smooth graphics and responsive controls.
Smooth Movement: Responsive arrow key controls
Score Tracking: Real-time score display
Game Over Detection: Self-collision ends the game
Wrap-around Screen: Snake can move through screen boundaries
Visual Feedback: Clean grid-based graphics with colored elements
Use Arrow Keys to control the snake's direction:
-
↑ Up
-
↓ Down
-
← Left
-
→ Right
-
Eat the red food to grow longer and increase your score
-
Avoid running into your own body
-
Try to achieve the highest score possible!
An interactive Sudoku solver built with Streamlit. Users can input any valid 9x9 Sudoku puzzle, and the program will find the solution using a backtracking algorithm.
- Interactive 9x9 Grid: Easily input or edit numbers in a user-friendly grid.
- Automated Solving: Employs a powerful backtracking algorithm to solve the puzzle with a single click.
- Pre-filled Sample: Comes with a default Sudoku puzzle for quick testing.
- Instant Feedback: Immediately displays a success message with the solution or an error if the puzzle is unsolvable.
- Make sure you have Python installed.
- Install the required libraries:
pip install streamlit numpy
- Run the application from your terminal:
streamlit run sudoku_solver.py
- The web app will open in your browser. Edit the grid to input your own Sudoku puzzle.
- Click the "Solve Sudoku" button to see the solution.
A simple number guessing game where the player tries to guess a randomly generated number within a limited number of attempts.
Run the script and start guessing!
Classic 3x3 grid game where two players take turns placing X's and O's. The first player to get three in a row (horizontally, vertically, or diagonally) wins!
- Clean GUI interface built with Tkinter
- Two-player gameplay
- Win detection for all possible combinations
- Reset functionality to play multiple rounds
- Visual feedback for current player's turn
- Player X starts first
- Click any empty square to place your mark
- Players alternate turns
- First to get three in a row wins
- Click "Reset Game" to play again
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 the launcher, use the following command:
python3 main.pySelect the number corresponding with the game/program you want to use.
This project is licensed under the MIT License.