Rubik-Cube
Rubik-Cube copied to clipboard
Enhanced a Timer feature in the game
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
In the game it have the default feature of timer, I have enhanced feature of pause, play, reset; which will help the player to handle the game easily. Added Play, Pause, Restart Button.
Pause Button: Allows users to pause the game, freezing the current state until they decide to resume. Play Button:Starts the game from the paused time Reset Button: Resets the game without stopping it, providing a quick way to start over from the beginning without navigating away.
Fixes: #155
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] This change requires a documentation update
Checklist:
- [x] I have made this from my own
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
ATTACH SCREEN-SHOTS / DEPLOYMENT LINK (if applicable)
Play Pause feature added
On clicking restart button , it begins from starting point