Skip to content

feat: Add 'Play Again' button to game-over screen - #50

Merged
venice-dev[bot] merged 1 commit into
soli-testbench:mainfrom
saucegodbased:venice-task-78c20e15
Mar 28, 2026
Merged

feat: Add 'Play Again' button to game-over screen#50
venice-dev[bot] merged 1 commit into
soli-testbench:mainfrom
saucegodbased:venice-task-78c20e15

Conversation

@saucegodbased

Copy link
Copy Markdown

Summary

Add an explicit 'Play Again' button to the game-over overlay so players can immediately restart without waiting.

Changes

  • Added a 'Play Again' button (#play-again-btn) to the game-over overlay in both public/index.html and root index.html
  • Button is visible in all game-over scenarios (qualifying and non-qualifying scores)
  • For non-qualifying scores: button appears alongside the existing auto-restart timer; clicking cancels the timer and restarts immediately
  • For qualifying scores: button appears alongside the name entry form so players can skip submission and restart
  • Styled consistently with the existing game-over overlay UI (transparent background, white border, matching font)
  • Existing auto-restart behavior for non-qualifying scores is preserved if the player does not click the button
  • exitGameOver() is called on click to properly reset and restart the game

Files Changed

  • public/index.html - Added Play Again button element
  • public/css/styles.css - Added button styles
  • public/js/main.js - Wired up button logic in enterGameOver/exitGameOver
  • index.html - Synced Play Again button element and styles
  • js/main.js - Synced button logic

- Add Play Again button visible in both qualifying and non-qualifying scenarios
- For non-qualifying scores: button appears alongside auto-restart timer,
  clicking cancels timer and restarts immediately
- For qualifying scores: button appears alongside name entry so players
  can skip submission and restart
- Styled consistently with existing game-over overlay UI
- Existing auto-restart behavior preserved if player doesn't click button

Co-Authored-By: bot_apk <apk@cognition.ai>
@venice-dev
venice-dev Bot merged commit f381db6 into soli-testbench:main Mar 28, 2026
1 check passed
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