Skip to content

fix: game over total moves - #852

Merged
jim-at-stink merged 1 commit into
go-v2/mainfrom
go-v2/fix/game-over-total-moves
Mar 26, 2026
Merged

fix: game over total moves#852
jim-at-stink merged 1 commit into
go-v2/mainfrom
go-v2/fix/game-over-total-moves

Conversation

@jim-at-stink

Copy link
Copy Markdown
Collaborator

Zoonou spotted that the total moves count wasn't right.

This is a bug I would have introduced when adding the extra steps before and after the game moves, but the GameOver panel was using the replay.length to set the total moves value in the page GameOver page.

Change to using game.moveNumber() for an accurate move count instead.

Screenshot 2026-03-26 at 10 51 30

@jim-at-stink
jim-at-stink marked this pull request as ready for review March 26, 2026 10:52
@jim-at-stink
jim-at-stink merged commit ad1db40 into go-v2/main Mar 26, 2026
3 checks passed
@jim-at-stink
jim-at-stink deleted the go-v2/fix/game-over-total-moves branch March 26, 2026 11:29
jim-at-stink added a commit that referenced this pull request Mar 31, 2026
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.

2 participants