Skip to content

Add pause and resume functionality to freeze game state#86

Closed
AditiBS wants to merge 1 commit into
FOSSCLUB-LBSITW:mainfrom
AditiBS:feature/pause-resume-game
Closed

Add pause and resume functionality to freeze game state#86
AditiBS wants to merge 1 commit into
FOSSCLUB-LBSITW:mainfrom
AditiBS:feature/pause-resume-game

Conversation

@AditiBS
Copy link
Copy Markdown
Contributor

@AditiBS AditiBS commented Feb 25, 2026

📌 Description

The game currently forces players to either continue playing or restart if they need a break. This PR adds a pause and resume feature that allows players to temporarily stop the game and continue later from the same state.

The implementation is minimal and focuses only on the requested functionality without altering existing game logic, visuals, or scoring behavior.


🔗 Related Issue

Closes: #72


🛠 Changes Made

  • Added a Pause / Resume button accessible during gameplay
  • Updated button label dynamically between Pause and Resume
  • Ensured pause state resets correctly when starting a new game

✅ Checklist

  • I have tested my changes
  • My code follows project guidelines
  • I have linked the related issue

@github-actions github-actions Bot added HackTheStack as a part of hack the stack event level-1 labels Feb 25, 2026
@FOSSCLUB-LBSITW
Copy link
Copy Markdown
Owner

Hi 👋
Thanks for the contribution!
This PR currently has merge conflicts in index.html, script.js, and styles.css.It looks like the branch might be behind the latest main.Could you please pull the latest changes and resolve the conflicts? Let us know if you need help with updating your branch. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HackTheStack as a part of hack the stack event level-1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No pause and resume option available during gameplay

2 participants