Skip to content

Show check, checkmate, and whose turn it is on the board - #15

Merged
wsams merged 1 commit into
masterfrom
cursor/board-check-turn-77fc
Oct 3, 2026
Merged

wsams merged 1 commit into
masterfrom
cursor/board-check-turn-77fc

Conversation

@wsams

@wsams wsams commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

On a phone, check and checkmate were easy to miss. The status line sat above the clocks and the board, so looking at the position meant scrolling away from it, and the king highlight faded after a moment. The side to move was also easy to lose, especially while the clock was paused.

The result now stays with the board:

  • A banner directly above the squares names the side to move, using the piece-color names (for example “Amethyst to move”). In check it turns gold (“Check · Amethyst to move”). On checkmate it turns red (“Checkmate · Amethyst wins”) and a stamp sits on the board.
  • The checked or mated king stays marked, with a + or # badge, instead of flashing and disappearing.
  • A colored bar sits on that side’s edge of the board, including after Flip board, so you can see who is to move without reading the clocks.
  • The clock for the side to move stays highlighted even when the timer is paused. The other clock dims. Neither is marked once the game is over.
  • Stalemate and other draws use the same on-board banner and stamp.

Demo

Phone-width view of the screenshot position (… 16. c5 Qf2#):

Checkmate banner, stamp, and marked king on a phone-width board

checkmate_and_turn_on_board.mp4

Test

  • The screenshot position shows “Checkmate · Amethyst wins” above the board, a checkmate stamp on the board, a red bar on Lilac’s edge, and a # on the king, all in the same view as the board on a phone-sized screen.
  • 1. e4 f6 2. Qh5+ shows a gold check banner, a gold bar on the checked side, and a + on the king.
  • The starting position and 1. e4 show the side to move on the banner, the edge bar, and the clock. Flip board moves the bar to the other edge.
  • A stalemate shows “Stalemate” on the board. Light and dark themes keep the banner readable.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Check and checkmate were easy to miss on a phone because the status
lived above the board and the king highlight faded. Keep a banner on
the board, mark the king, and show whose turn it is with a side bar
and the clocks.

Co-authored-by: Weldon Sams <wsams@users.noreply.github.com>
@wsams
wsams marked this pull request as ready for review October 3, 2026 04:49
@wsams
wsams merged commit 9a0a6f1 into master Oct 3, 2026
1 check passed
github-actions Bot added a commit that referenced this pull request Oct 3, 2026
# [1.9.0](v1.8.0...v1.9.0) (2026-10-03)

### Features

* show check, mate, and the side to move on the board ([#15](#15)) ([9a0a6f1](9a0a6f1))
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.9.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