https://github.com/hemanthkumarsunkari27/gamehub
GameHub is a modular Python gaming platform hosting classic games like a GK Quiz, Tic-Tac-Toe, Hangman, and an Anagram Solver. Designed with object-oriented principles, GameHub is scalable, stable, and easy to expand, with each game in its own module. It includes unit tests for each game to ensure a reliable experience .
https://github.com/hemanthkumarsunkari27/gamehub
anagram game-development games general-knowledge-quiz hangman oop python tic-tac-toe unit-testing
Last synced: about 1 year ago
JSON representation
GameHub is a modular Python gaming platform hosting classic games like a GK Quiz, Tic-Tac-Toe, Hangman, and an Anagram Solver. Designed with object-oriented principles, GameHub is scalable, stable, and easy to expand, with each game in its own module. It includes unit tests for each game to ensure a reliable experience .
- Host: GitHub
- URL: https://github.com/hemanthkumarsunkari27/gamehub
- Owner: Hemanthkumarsunkari27
- Created: 2024-11-25T12:47:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-25T12:50:36.000Z (over 1 year ago)
- Last Synced: 2025-06-10T13:49:05.602Z (about 1 year ago)
- Topics: anagram, game-development, games, general-knowledge-quiz, hangman, oop, python, tic-tac-toe, unit-testing
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GameHub
**GameHub** is a Python project that acts as a hub for multiple mini-games. The project uses modular Object-Oriented Programming (OOP) to create scalable, stable, and easily testable game modules.
## Games Included
1. **General Knowledge Quiz** - Test your general knowledge with a series of questions.
2. **Tic Tac Toe** - Play the classic game against a friend or an AI.
3. **Hangman** - Guess the word letter-by-letter before you run out of attempts.
4. **Anagram** - Unscramble letters to find the correct word.
5. **Solver** - Solve math or word problems with hints.
## Project Structure
gamehub/ ├── games/ │ ├── gk_quiz.py │ ├── tic_tac_toe.py │ ├── hangman.py │ ├── anagram.py │ └── solver.py ├── tests/ │ ├── test_gk_quiz.py │ ├── test_tic_tac_toe.py │ ├── test_hangman.py │ ├── test_anagram.py │ └── test_solver.py └── main.py
- **main.py**: The main hub file that allows users to select and play games.
- **games/**: Contains modules for each individual game.
- **tests/**: Contains unit tests for each game module to ensure functionality.
## Installation
Install required packages:
pip install -r requirements.txt
### Usage
Run main.py to access the GameHub:
python main.py
#### Running Tests
You can run all tests by executing:
python -m unittest discover -s tests