Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hemanthkumarsunkari27/gamehub
https://github.com/hemanthkumarsunkari27/gamehub
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/hemanthkumarsunkari27/gamehub
- Owner: Hemanthkumarsunkari27
- Created: 2024-11-25T12:47:21.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-25T12:50:36.000Z (about 1 month ago)
- Last Synced: 2024-11-25T13:18:52.742Z (about 1 month ago)
- Language: Python
- Size: 0 Bytes
- 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