python-mini-project
python-mini-project copied to clipboard
Enhance the Dice Rolling project
Description
This pull request I want to enhance the dice stimulator refactoring the code into a class and add docstrings to it, so the code will be easy to understand, additionally, I incorporate a new feature which this new feature the players can roll the dice again without restarting the terminal, the players can now also exit the game at any time. And I update the README file with these changes.
Key Changes:
- Refactored code into a class:
- The functionality of the dice stimulator has been encapsulated within the 'DiceSimulator' class.
- This restructuring improves code readability, maintainability, and reusability.
- Added Docstrings:
- Comprehensive docstrings have been added to the class and its methods to provide clear documentation on their purpose and usage.
- New feature- Play Again Option:
- Players can now choose to roll the dice again without restarting the program.
- An option to exit the game has been added, enhancing the user experience.
- Update README:
- The README file has been updated to reflect these changes.
- Added instructions on how to run the game, game instructions, and details about the new features and class structure.
A short summary of what is included in your Pull Request.
Fixes #279
- [x] Issue_no:
<279>
- [ ] Not applicable
Type of change
Choosing one or more options from the following as per the nature of your Pull request.
- [ ] New project insert
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] Documentation Update
Project
-
Project Name: Dice Rolling Stimulator
Checklist:
Please tick all the boxes that are fulfilled by your Pull Request.
- [ ] I have named my files and folder, according to this project's guidelines.
- [ ] My code follows the style guidelines of this project.
- [x] I have commented on my code, particularly in hard-to-understand areas.
- [x] I have created a helpful and easy to understand
README.md
, according to the givenREADME_TEMPLATE.
- [ ] My changes do not produce any warnings.