A short summary of what is included in your Pull Request.
This pull request introduces a new "Retry" feature to the Caterpillar game, addressing issue #277. With this feature, players can press the "R" key to restart the game immediately after the "GAME OVER" screen, providing a more fluid and enjoyable gaming experience.
The following changes were made:
Added a keybinding for the "R" key that restarts the game after it's over.
Improved the game loop to accommodate the retry feature without restarting the entire script.
Updated comments to explain the new functionality and ensure maintainability.
Fixes #(issue_no)
[ ] Issue_no: <insert your issue no here>
[ ] 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)
[ ] Documentation Update
Project
Your Project Name:
Short Description: Provide a short desctiption of your Python project
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.
[x] My code follows the style guidelines of this project.
[x] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
Description
A short summary of what is included in your Pull Request. This pull request introduces a new "Retry" feature to the Caterpillar game, addressing issue #277. With this feature, players can press the "R" key to restart the game immediately after the "GAME OVER" screen, providing a more fluid and enjoyable gaming experience.
The following changes were made:
Added a keybinding for the "R" key that restarts the game after it's over. Improved the game loop to accommodate the retry feature without restarting the entire script. Updated comments to explain the new functionality and ensure maintainability. Fixes #(issue_no)
<insert your issue no here>
Type of change
Choosing one or more options from the following as per the nature of your Pull request.
Project
Your Project Name:
Short Description: Provide a short desctiption of your Python project
Checklist:
Please tick all the boxes that are fulfilled by your Pull Request.
README.md
, according to the givenREADME_TEMPLATE.