Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retry feature to Caterpillar game (Issue #277) #308

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

1zj23
Copy link

@1zj23 1zj23 commented Nov 13, 2024

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)

  • 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)
  • 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.
  • My code follows the style guidelines of this project.
  • 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.
  • My changes do not produce any warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant