Live framed search dashboard for a terminal #6

Merged
claude merged 2 commits from pretty-dashboard into main 2026-11-15 14:34:52 +01:00
Collaborator

The terminal output is now a framed dashboard, redrawn in place ten times a second instead of a growing list of lines:

  • Statistics: score, white's expected score as an evaluation bar, depth, playouts, speed, time with a progress bar (time or playout limit), tree fill, notes on tree reuse and collections.
  • Principal variation in SAN with move numbers, wrapped, fading with depth.
  • Root moves (SAN) with a bar for their share of the visits, score and prior.
  • A spinner while searching, done at the end, bestmove in SAN.

Each frame moves the cursor back to the top of the previous one and clears below it; lines typed under the dashboard (e.g. stop) are counted and drawn over. The box adapts to the terminal's width and height. RIGBY_PRETTY=1 forces the dashboard into a pipe; NO_COLOR turns it off. Plain UCI after the first uci command, as before.

The first version also drew the board with piece glyphs; the second commit removes it.

Testing

No SPRT: display only, search and UCI output are unchanged.

  • Node-limited UCI searches (with tree reuse and a stalemate root) print exactly what main prints; time-limited ones differ only in node counts.
  • go wtime, go infinite + stop and quit work.
  • The dashboard was driven in a real console: in-place redraw, a reused tree, a stalemate root and the switch to UCI. Its colours were checked rendered to HTML.
  • The bench is deterministic and unchanged.

Bench: 546018

🤖 Generated with Claude Code

The terminal output is now a framed dashboard, redrawn in place ten times a second instead of a growing list of lines: - **Statistics:** score, white's expected score as an evaluation bar, depth, playouts, speed, time with a progress bar (time or playout limit), tree fill, notes on tree reuse and collections. - **Principal variation** in SAN with move numbers, wrapped, fading with depth. - **Root moves** (SAN) with a bar for their share of the visits, score and prior. - A spinner while searching, `done` at the end, `bestmove` in SAN. Each frame moves the cursor back to the top of the previous one and clears below it; lines typed under the dashboard (e.g. `stop`) are counted and drawn over. The box adapts to the terminal's width and height. `RIGBY_PRETTY=1` forces the dashboard into a pipe; `NO_COLOR` turns it off. Plain UCI after the first `uci` command, as before. The first version also drew the board with piece glyphs; the second commit removes it. ## Testing No SPRT: display only, search and UCI output are unchanged. - Node-limited UCI searches (with tree reuse and a stalemate root) print exactly what `main` prints; time-limited ones differ only in node counts. - `go wtime`, `go infinite` + `stop` and `quit` work. - The dashboard was driven in a real console: in-place redraw, a reused tree, a stalemate root and the switch to UCI. Its colours were checked rendered to HTML. - The bench is deterministic and unchanged. Bench: 546018 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 1 commit 2026-11-15 14:31:00 +01:00
The terminal output is now a framed dashboard that is redrawn in place
ten times a second instead of a growing list of lines:

- the root position as a coloured board, with the best move's squares
  highlighted;
- the score, white's expected score as an evaluation bar, depth, playouts,
  speed, time with a progress bar (time or playout limit), tree fill and
  notes on tree reuse and collections;
- the principal variation in SAN with move numbers, wrapped and fading
  with depth;
- the most visited root moves (SAN) with a bar for their share of the
  visits, score and prior;
- a spinner while searching, "done" at the end, and bestmove in SAN.

Each frame moves the cursor back to the top of the previous one and
clears below it; lines the user typed under the dashboard (e.g. stop)
are counted and drawn over. The box adapts to the terminal's width and
height (fewer root moves, then no blank lines, the board only when it
fits). RIGBY_PRETTY=1 forces the dashboard into a pipe.

Checked: UCI output is unchanged (node-limited searches identical to
main, including tree reuse and a stalemate root; time-limited ones
differ only in node counts); go wtime, go infinite + stop and quit
work; the dashboard was driven in a real console, including the redraw,
a reused tree and the switch to UCI, and its colours were checked
rendered to HTML. Search is untouched, so the bench is unchanged.

Bench: 546018

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rektdie added 1 commit 2026-11-15 14:33:46 +01:00
The dashboard keeps the statistics, the principal variation and the
root moves; the board and the knight glyph in the titles are gone. The
statistics take the full width, with the evaluation and time bars
capped at about half of it.

Checked: node-limited UCI output is still identical to main, bench
unchanged.

Bench: 546018

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude merged commit 8f69f4f6f1 into main 2026-11-15 14:34:52 +01:00
claude deleted branch pretty-dashboard 2026-11-15 14:34:52 +01:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rektdie/Rigby#6