Skip to content

Start games only after an explicit Start game - #17

Merged
wsams merged 1 commit into
masterfrom
cursor/start-game-flow-976e
Oct 5, 2026
Merged

wsams merged 1 commit into
masterfrom
cursor/start-game-flow-976e

Conversation

@wsams

@wsams wsams commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Games no longer begin the moment a coin lands or the CPU is switched on. Setup stays open until Start game, so the clock and lessons can be chosen first.

  • New board clears the position and returns to setup.
  • New game does the same, and with the CPU on it tosses a coin. Stockfish still waits.
  • Start game locks the clock and the coaches, then starts the clock (unless it is Off). If the CPU has White, it moves only after this.
  • Clock choices before the start are Live, Notation pause, or Off. They lock once the game starts.
  • Pause stops the clock and covers the board, moves, and lessons until Resume.

start-game-pause-flow.mp4

Setup with New board, New game, and Start game
After the coin toss, Start game is still waiting and the coach can be turned on
Pause covers the board

Testing

  • Unit tests for clock Off/pause and for coaches freezing when a game starts with no moves.
  • Browser check: a click before Start is refused; a coin toss does not start the CPU or the clock; Start game then runs the clock and, when the CPU has White, starts its search; Pause covers the board.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Keep the coin toss, clock, and lessons in setup until Start game, so the CPU cannot move first. Clock time and mode, including Off, lock at the start. Pause stops the clock and covers the board.

Co-authored-by: Weldon Sams <wsams@users.noreply.github.com>
@wsams
wsams marked this pull request as ready for review October 5, 2026 00:03
@wsams
wsams merged commit a16e2af into master Oct 5, 2026
1 check passed
github-actions Bot added a commit that referenced this pull request Oct 5, 2026
# [1.10.0](v1.9.0...v1.10.0) (2026-10-05)

### Features

* start games only after an explicit Start game ([#17](#17)) ([a16e2af](a16e2af))
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.10.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants