This repository contains a collection of enhanced Python projects, ranging from beginner to advanced level. Each project has been improved for better user experience, code quality, and features.
- Python 3.7 or higher
- Recommended: Virtual environment (venv)
- Some projects require additional packages (see below)
- Any code editor (VS Code, PyCharm, Sublime Text, etc.)
git clone https://github.com/Tuhin-SnapD/Python-Projects
cd Python-ProjectsWindows:
python -m venv venv
venv\Scripts\activatemacOS/Linux:
python3 -m venv venv
source venv/bin/activate# Install all dependencies for all projects
pip install -r requirements.txtOr install dependencies individually:
# For basic projects (no extra dependencies needed)
# - hangman.py, tictactoegame.py, numberguessgame.py, wordguess.py
# - mazesolver.py, slotmachine.py, rockpaperscissor.py
# For Snake Game
pip install pygame
# For Image Displayer GUI
pip install PyQt5
# For PDF Merger
pip install PyPDF2
# For Password Manager
pip install cryptography
# For RoboTalker (choose one or more)
pip install pyttsx3 # Cross-platform TTS
pip install gtts # Google TTS
# For Weather App
pip install requests# Example: Run Hangman
python hangman.py
# Example: Run Snake Game
python snakegame.py- Classic word guessing game with multiple categories (fruits, animals, countries, colors)
- ASCII art, hints, statistics tracking, and improved UI
- No extra dependencies
- Play against the computer with 3 AI difficulty levels (Easy, Medium, Hard)
- Statistics tracking and improved interface
- No extra dependencies
- Guess a random number with difficulty levels, hints, and stats
- No extra dependencies
- Guess 4-letter words with no repeated letters
- Feedback for correct/wrong positions, stats, and replay
- Uses
doc/words.txt(included)
- Visualizes and solves mazes using DFS, BFS, A*, and Dijkstra's algorithms
- Interactive CLI with algorithm comparison
- No extra dependencies
- Simulated slot machine with multiple paylines, bonus features, and progressive jackpot
- Enhanced graphics and statistics
- No extra dependencies
- Play against an AI with 3 difficulty levels
- Tracks win/loss/tie stats and move history
- No extra dependencies
- Classic Snake with power-ups, levels, high score saving, and improved graphics
- Requires
pygame(pip install pygame)
- Modern PyQt5 GUI to view, zoom, and apply filters to images
- Requires
PyQt5(pip install PyQt5)
- Merge multiple PDFs via a GUI or CLI
- Requires
PyPDF2andtkinter(pip install PyPDF2)
- Secure password storage with encryption, password generation, search, and stats
- Requires
cryptography(pip install cryptography)
- Text-to-speech with multiple engine support (wsay, pyttsx3, gtts, festival)
- Requires
pyttsx3and/orgttsfor advanced features
- Fetches current weather for any city, supports multiple APIs and units
- Requires
requests(pip install requests)
- For best experience, install all dependencies listed above.
- Some projects (like Snake, Image Displayer, PDF Merger) require additional libraries.
- For
robotalker.py, Windows users can usewsay.exe(see wsay), or usepyttsx3/gttsfor cross-platform support. - The
doc/words.txtfile is required for the Word Guess game. - Virtual environment is recommended to avoid conflicts with system Python packages.
Contributions are welcome! If you have a project or improvement, please create a pull request with a description and usage instructions.
This repository is open source and available under the MIT License.