- Overview
- Features
- Project Structure
- Getting Started
- Project Roadmap
- Contributing
- License
- Acknowledgments
A classic number guessing game implemented in Python where players try to guess a randomly generated number between 1 and 100. The game features multiple difficulty levels, hints, and a high score system.
- Three difficulty levels: Easy (10 attempts), Medium (5 attempts), and Hard (3 attempts)
- Dynamic feedback on each guess (higher/lower hints)
- High score tracking for each difficulty level
- Time tracking for each game round
- Input validation and error handling
- User-friendly command-line interface
└── roadmap-number-guessing-game/
├── LICENSE
├── README.md
└── main.py
ROADMAP-NUMBER-GUESSING-GAME/
Before getting started with roadmap-number-guessing-game, ensure your runtime environment meets the following requirements:
- Programming Language: Python
Install roadmap-number-guessing-game using one of the following methods:
Build from source:
- Clone the roadmap-number-guessing-game repository:
❯ git clone https://github.com/P-Nelly/roadmap-number-guessing-game
- Navigate to the project directory:
❯ cd roadmap-number-guessing-game
- No additional dependencies required! The game uses only Python standard library.
Run the game using the following command:
❯ python main.py
No formal testing suite is implemented yet. Manual testing can be performed by running the game and trying different inputs.
-
Task 1
: Implement basic number guessing game functionality -
Task 2
: Add persistent high scores using file storage -
Task 3
: Implement a graphical user interface -
Task 4
: Add additional game modes and features -
Task 5
: Create a multiplayer mode
- 💬 Join the Discussions: Share your insights, provide feedback, or ask questions.
- 🐛 Report Issues: Submit bugs found or log feature requests for the
roadmap-number-guessing-game
project. - 💡 Submit Pull Requests: Review open PRs, and submit your own PRs.
Contributing Guidelines
- Fork the Repository: Start by forking the project repository to your github account.
- Clone Locally: Clone the forked repository to your local machine using a git client.
git clone https://github.com/P-Nelly/roadmap-number-guessing-game
- Create a New Branch: Always work on a new branch, giving it a descriptive name.
git checkout -b new-feature-x
- Make Your Changes: Develop and test your changes locally.
- Commit Your Changes: Commit with a clear message describing your updates.
git commit -m 'Implemented new feature x.'
- Push to github: Push the changes to your forked repository.
git push origin new-feature-x
- Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
- Review: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!
This project is protected under the MIT License. For more details, refer to the LICENSE file.
- Built as part of the Python learning roadmap: https://roadmap.sh/projects/number-guessing-game
- Inspired by classic number guessing games
- Uses Python's random and time modules from the standard library