Commit graph

95 commits

Author SHA1 Message Date
vrubelroman
a66d1016d9 uci: the protocol as a machine without I/O, the process as its transport; chess-import: passes and positional I/O on a target without threads
The handshake and the session after it move to uci::protocol: lines, commands
and the time go in, lines to write and events come out, deadlines are named
instead of waited for. The child process with its reader and supervisor
threads is now one transport of it (process.rs, not built for WebAssembly).
Behaviour on the computer and Android is unchanged; the fake engine tests pass
as before, and the machine has its own tests.

chess-import: the parallel passes (booster, position search, opening tallies)
go through parallel::map, which runs a single worker on the calling thread;
on WebAssembly there is one worker (std threads panic there). read_at and
write_all_at have a portable form through the file cursor for targets other
than Unix and Windows. The bench command is not built for WebAssembly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 14:19:21 +03:00
vrubelroman
a8c8ff3002 Revert "Review: a check that wins a piece whatever the reply is not great"
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
This reverts commit d8a5c8f4c7.
2026-10-30 01:45:33 +03:00
vrubelroman
d8a5c8f4c7 Review: a check that wins a piece whatever the reply is not great
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
90.Ra4+ of the owner's son's game, a skewer, is a textbook blow - the owner
calls it plain. The checks of a mating attack stay (22.Bf5+, 23.Bd7+ of the
Evergreen game). ChessCom rules only; the son's game now lists Ra4+ among the
owner's plain moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 01:43:43 +03:00
vrubelroman
52500f61a5 Release 2.1.1
Some checks failed
Release / version (push) Has been cancelled
Release / linux (push) Has been cancelled
Release / flatpak (push) Has been cancelled
Release / windows (push) Has been cancelled
Release / macos (push) Has been cancelled
Release / android (push) Has been cancelled
Release / publish (push) Has been cancelled
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Brilliant moves for a hard only move a shallow search misses; surer great moves
(no ! for a quiet step away or the king out of check). Formatting by cargo fmt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 22:59:15 +03:00
vrubelroman
cfa2610dc3 Review: the king stepping out of check is not great
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Three of our ! chess.com did not give (23.Kd3, 20...Ka7, 32.Kd2) and three it
did (22.Ke3, 25...Kb6, 20.Ke2) go; the owner counts the move plain. Our ! are now
chess.com's 27 times of 28. ChessCom rules only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 22:08:10 +03:00
vrubelroman
90b20c0376 Review: a hard only move is brilliant too; the owner's plain moves join the check set
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The shallow search (5 000 nodes) is on: the only good move (10 % ahead) that a
shallow search ranks 30 % lower is !! even without a sacrifice - 17...Be6!! of
Byrne - Fischer and 33.c3+!! of Kasparov - Topalov; !! of chess.com found 35 of 39
(was 32), 95 % of ours right, no wrong one added. Not used for ! (it would take
nearly every ! away). The owner's two games with 10.Be2 and Ra7, which he calls
plain, join the set with an OwnerPlain tag the checker enforces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 21:58:46 +03:00
vrubelroman
6004be32bb Game review: shallow search for how hard a move is to find (off by default)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
For a move that could be brilliant or great and was the engine's best, an
optional shallow search (same fixed search, go nodes SHALLOW_NODES = 5000)
keeps its best move and evaluation and the move played at that depth
(PosEval.shallow, serde default; SEARCH_VERSION unchanged). Ply.difficulty
says how much the shallow search underrates the move (Measure::Choice:
against its own best move; Measure::Depth: against the deep search).

Hardness (report.rs) says how the difficulty counts in !! and ! of the
ChessCom rules: ! only for hard moves, gaps, the capture/quiet-retreat bans,
!! for a very hard only move. The default changes nothing and makes no
shallow search; rules that use it fill old analyses in like the second
search (seconds_missing). chesscom_check takes CP_SHALLOW_NODES and the
rule parameters for experiments; review_bench CP_SHALLOW_NODES. fake_uci
learns --searchmoves and --shallow for the job test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 21:27:16 +03:00
vrubelroman
69b501800a chess.com check: Aronian - Anand; five held-out games summed up
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 21:03:30 +03:00
vrubelroman
45e931ba09 chess.com check: Topalov - Shirov
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 20:59:04 +03:00
vrubelroman
319aa476bf chess.com check: Short - Timman (34.Kg5!! is no material sacrifice)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 20:54:40 +03:00
vrubelroman
76d1114985 chess.com check: Tal - Larsen, prediction 3 of 4 marks right
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 20:51:58 +03:00
vrubelroman
5a6897ba0a chess.com check: Polugaevsky - Nezhmetdinov, prediction 5 of 5 marks right
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 20:49:19 +03:00
vrubelroman
5c73b4a781 chess.com check: five classic games given to the owner, predictions first
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 20:47:29 +03:00
vrubelroman
da4903cb2e Review: an attacked piece stepping quietly to its one good square is not great
Some checks are pending
CI / macos-build (push) Waiting to run
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
10.Be2 of the owner's online game (the bishop on d3 under c4, the only square
that keeps f3) was ! - plain, the owner says. A step away with check can still be
great (19...Ne2+, 23.Bd7+ are chess.com's !). ChessCom rules only; 13.Qa4! of the
Evergreen game is given up for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 20:43:54 +03:00
vrubelroman
262c0b1711 Release 2.1.0
Some checks failed
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Release / version (push) Has been cancelled
Release / macos (push) Has been cancelled
Release / android (push) Has been cancelled
Release / linux (push) Has been cancelled
Release / flatpak (push) Has been cancelled
Release / windows (push) Has been cancelled
Release / publish (push) Has been cancelled
Preparing against an opponent (openings), one fixed engine search for the game
review everywhere, !! and ! recalibrated on chess.com (check set of 15 games),
100 classic sample games that update with the program. Formatting by cargo fmt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 20:37:06 +03:00
vrubelroman
5c54975d6b Review: «Analyse again» for a stale analysis; PGN evaluations never pass for the engine's
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The tester's findings: the stale analysis offered «Дополнить» (fill in) though
it recomputes everything - it now says «Обновить» in 9 languages; and an engine
run over evaluations read from the PGN no longer keeps them under the fixed
search's name - it analyses the whole game.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:54:37 +03:00
vrubelroman
1524affd1a chess.com check: Giri - Gukesh 2024 given to the owner, prediction first
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:39:43 +03:00
vrubelroman
2c88e49694 chess.com check: the Opera game and Byrne - Fischer in another move order
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Prediction made before the answer: !! 2 of 3 (10.Nxb5 missed), no wrong mark.
Tried and dropped: a sacrifice from a 1-point net loss (finds 10.Nxb5!! and
22...Rxh3!!, but adds false !! on 22.Nd5 and 17...Rxc3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:39:03 +03:00
vrubelroman
1e834fe1ea Review: stricter great moves - never a capture, the best other move 25 % behind
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The owner wants !! near 100 % and fewer, surer !. Sweeping the thresholds on
the check set, wrong ! came mostly from captures in forced lines; with no !
for a capture and a gap of 25 % (was 10) ours are chess.com's 87 % of the time.
ChessCom rules only. 2M nodes instead of 1M changed !! not at all: kept 1M.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:30:11 +03:00
vrubelroman
63a764bd16 Android: the game analysis in the fixed search; decision and docs
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
- mobile-api GameReview.start(path, eval_file, full): the fixed search in
  one engine process per core (at most 4, by free memory), nice 10;
  ReviewState.stale, nps_per_process; review_estimate_secs().
- The start sheet keeps the description, the time and one button; quality,
  «Start over» and «Analyse again» are gone; a stale analysis offers
  «Update», evaluations of the PGN «Analyse with the engine».
- docs/decisions.md: the owner's decision with the numbers (search, memory,
  times, the first chess.com check); android-ui.md §21.2; chess.com README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:23:46 +03:00
vrubelroman
96e3bcd13f chess.com check: the Opera game given to the owner, our prediction first
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:20:38 +03:00
vrubelroman
2ca494ce27 Review: a threat standing before the move does not undo a sacrifice; Kasparov - Topalov
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
37.Rd7!! of Kasparov - Topalov: 37...Rxd7 38.Bxc4 wins the queen back, but the
bishop has attacked it since 36.Bf1 - the move made no new threat, the rook is
given. Only a threat the move itself makes (18.Bxa7 opening the d-file) means
taking is no answer. Tried and dropped: a pawn given as the only good move as !!
(finds 33.c3+!!, but marks 17.d5 of Steinitz, unmarked by chess.com).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:20:09 +03:00
vrubelroman
968ab221cf Review: one fixed engine search everywhere, in parallel engine processes
Every position of a game analysis (and of the opening errors) is searched by
ChessPenguin's Stockfish 19 to 1M nodes with one thread, a 32 MB hash and
ucinewgame before each search, so the evaluations depend on the position
alone: the same marks on every computer and phone, whatever the number of
engine processes (one per CPU, at most 8 on a computer and 4 on a phone, and
what the free memory holds) or the order of the positions.

- ReviewMeta.search: analyses of another search are stale; shown, but
  Update makes them all again. The prep caches drop such evaluations.
- Desktop: no launch dialog (engine, quality, threads, memory are gone);
  Analyse starts at once, its tooltip gives the time; the prep dialog keeps
  the colour. Without the own Stockfish the download is offered.
- settings.review and prep.quality removed; old settings files still read.
- fake_uci --hash-memory; tests of determinism on processes and order.
- chesscom_check in the fixed search (CP_REVIEW_NODES for experiments);
  review_bench example for times and determinism on a real engine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:19:44 +03:00
vrubelroman
8c9c2d38c2 chess.com check: our prediction for Kasparov - Topalov, before comparing
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:18:43 +03:00
vrubelroman
44d2c3c8d7 chess.com check: Kasparov - Topalov given to the owner
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:15:55 +03:00
vrubelroman
34c816d781 Review: a capture is great only when every other move loses; winning back after an accepted sacrifice is no trade
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Byrne - Fischer (given to chess.com after our prediction was recorded):
12...Nxc3 and 13...Nxe4 were great by us, not by chess.com - in the whole check
set chess.com marks a capture ! only when the best other move loses (20.Rxe7+,
18.fxe6). 18...Bxc4+ wins back after 18.Bxb6 took the queen 17...Be6 left: the
combination goes on. ChessCom rules only. Tried and dropped: counting a piece
left hanging as given (would find 17...Be6!! but adds four false !!).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:13:56 +03:00
vrubelroman
a1d185a67d chess.com check: Byrne - Fischer given to the owner, our prediction recorded first
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:06:29 +03:00
vrubelroman
58aac83927 Review: won anyway means a forced mate (ChessCom); three more chess.com games
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Every sacrifice of the check set whose best other move also won (up to 93 %)
is chess.com's !!, so a won position no longer rules !! out by win % - only a
forced mate without the move does. The checker compares games known only by
chess.com's totals by count (Levitsky - Marshall). Check set: 10 games.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:02:47 +03:00
vrubelroman
69ea1ade15 chesscom_check: share of chess.com's !! and ! found, and of ours that match
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 18:48:56 +03:00
vrubelroman
1be3f84802 Review: a piece moved into a new attack is offered; a pawn for a quicker mate; taking back a trade
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Calibrated on three more games marked by chess.com (Pillsbury - Lasker,
Rotlewi - Rubinstein, Reti - Tartakower), ChessCom rules only:
- an attacked piece moved quietly onto another attacked square could have
  stepped away: offered (18...Ra3!!, 20...Ng4!!); only a desperado capture is
  a piece lost anyway;
- a capture winning back what the opponent has just taken elsewhere is no
  winning capture and can be great (18.fxe6!), unless the opponent took a piece
  the mover had just offered (24...Bxe4+);
- a pawn offered for a quicker mate is brilliant (29...b5+!!).
Check set: 7 games, 38 agree, 6 differ (was 34/10).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 18:46:50 +03:00
vrubelroman
9f46fb1d71 Review: no ! or !! for a book move; no ! when the best other move keeps 60 %
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The opening table moves from prep into its own crate, chess-openings, so the
game review can tell a book move (a position on a line of the table), as
chess.com does. A move is no longer great when the best other move still keeps
60 % (was 75): every chess.com ! of the check set is at 59 % or less. ChessCom
rules only. Check set: 23 agree, 5 differ (was 9).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 18:37:42 +03:00
vrubelroman
da367bdaf1 Review: only a threat the move made refutes a sacrifice, not one the capture opens
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
22.Rxe7+!! and 24.Rg7+!! of Steinitz - von Bardeleben (chess.com marks both)
were lost to the previous rule: 22...Qxe7 23.Rxc8+ wins back only because the
queen left d7. The game joins the chess.com check set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 18:31:45 +03:00
vrubelroman
4f573bac6f Review: a sacrifice mating sooner is brilliant; a best move's next-position drop is noise
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The Immortal game against chess.com's marks: 22.Qf6+!! mates in 2 while 22.Qf7
mates in 4 (win % cannot tell them apart), and 9.Nf5! / 12.h4! were lost to
the noise between two searches. ChessCom rules only; the chess.com check set
gains the Immortal game: 17 of 17.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 17:18:48 +03:00
vrubelroman
0efe794662 Review: a piece whose capture loses more at once is no sacrifice; chess.com check set
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
18.Bxa7 (a game against Rodent, 2026-10-27) opens the d-file on the queen:
18...Rxa7 19.Rxd8. chess.com gives it no !!, and neither do the ChessCom rules
now. The games compared with chess.com live in crates/game-review/chesscom/ with
its marks as NAGs; the chesscom_check example runs them all after each change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 17:13:10 +03:00
vrubelroman
d654223665 Opponent prep: the tester's and designer's review
Core: the most precise opening name stays down a line (a deeper position the
table names more generally, «Sicilian Defense» after 3.d4, does not take it
back), in the games' names and in the tree; one name per position across move
orders; the games and the last date of a position over all its move orders;
`evaluated()` (evaluations from the cache count). Report version 3.

Screen: errors judged from cached evaluations show without a run; «Checked N of
M positions · Continue» after «Stop» or a new depth; the report shows the book
only when it was computed with the chosen one; the dialog keeps the remembered
book and the same player reopens with the dialog's colour and book; «Deeper»
and the depth list share one path (setting kept, report from the cache); a
chosen error survives re-judging during the run; quitting during the run asks
first; Ctrl+W returns from a game opened from the report; a game opened at an
error opens after the move, a repeated error at its newest game.

Design (§12): the summary as a grid whose columns give way, counts in the
colours of the signs; result bars without numbers, faint over few games; move
lines numbered at White's moves; whole-move first-move lines; colour icons in
the openings table; ECO kept beside the name; the errors tab as one table with
row selection and keys (↑/↓/→/←/Enter); colour lines there only in the stack;
«Inaccuracies» switch (kept in settings) for the tab, the summary, the tree and
the games; «▾» at the right end; one colour order; the depth caption by the
room left; names first in narrow game lists; two-row games minimum in a low
window; the caption beside the stacked board; «others (N)» when narrow.
Designer's review recorded in docs/design/opponent-prep.md §12.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 16:21:16 +03:00
vrubelroman
f02f140394 Opponent prep: the desktop screen (dialog, report, engine run)
The «Prepare against…» entry points in the library (the filter panel's button
when a player is set, the game row's context menu, Ctrl+Shift+P), the dialog
(database, the player's spellings with the similar names apart, colour, book)
and the report screen in the stack between the library and the game: the
repertoire tree with transpositions, opening names, scores and the book
column, the openings table by family and variation, the errors tab (repeated
errors and by opening), the board of the chosen position with the line under
it, and the games of the selection, which open in the game screen at that move
with «⬅ Back to preparation».

The engine run reuses the game analysis job over the distinct opening
positions of the chosen colour: the launch dialog shares the engine picker and
the quality/threads/memory grid with review.rs (quality «Fast» by default, its
own setting), marks appear as positions are evaluated, «Stop» keeps what was
done, the evaluations and the report are cached under <cache>/prep. One engine
job per program: game analysis and the live engine are blocked meanwhile.

Core: targets and counts by colour (`targets_for`, `missing_for`), the book
step keeps its per-position counts (`book_counts`) for the tree column.
Narrow windows: the board stacks over the lists under 804 px and folds into a
button under 720 px of height; the right column is split explicitly (a nested
bottom panel is not reserved from the content above it in egui).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-28 15:43:15 +03:00
vrubelroman
d54f207889 Opponent prep: the prep crate (openings only)
A new crate shared by the apps, no UI: what a player of a database plays
in the opening and where in the opening he goes wrong.

- Player: candidates from the database's names (initials with a full
  stop work), one or several ids, White, Black or both.
- Lines: the first N plies (default 20) of the main lines, position keys,
  UCI/SAN, result from the player's side, full date, opponent's Elo;
  games from a set-up position are skipped.
- Repertoire tree per colour by move order with position keys:
  games (+/=/-), last date, average opponent Elo, game list,
  transpositions marked.
- Opening names from lichess-org/chess-openings (CC0; revision and
  SHA-256 pinned, files in crates/prep/data, THIRD_PARTY_NOTICES): the
  deepest named position of a line, families and variations with their
  first moves, grouped by name.
- Book: a second database (or the same one without the player's games)
  says where each game left it (first position with fewer than T games,
  T = 5) and whose move it was.
- Engine: every distinct position of the lines once through
  game_review::run, judged with the game analysis rules for the player's
  moves only; errors by opening and the repeated ones (same position,
  same move in two or more games); evaluations cached per position across
  reports, the report cached by database, player and plies.
- examples/prep_report.rs prints it all for a database and a player.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-28 12:32:39 +03:00
vrubelroman
7d041f2a3d Import and review: what the opponent preparation needs
- Name queries: the full stop of an initial separates words too, so
  "Carlsen, M." and "Вафин Р." find the full names (suggestions and
  filters alike).
- `Database::main_line(index, plies)`: the first moves of a game's main
  line; a ChessBase game is decoded without its tree (microseconds), a
  PGN game is parsed. `Database::player_name(id)` for both kinds.
- `position::theory_end`: the linear/doubling/halving search for where
  a line leaves a database, taken out of the reference panel's
  `book_end` so another caller can use it; the panel calls it.
- game-review opens `judge` and `terminal_eval`; `Judgement` is serde.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-28 12:29:08 +03:00
vrubelroman
2e145dc362 Review: both rule sets of !! and ! kept (Strict, ChessCom); ! is «Замечательный ход»
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The first rules stay beside the calibrated ones, selectable through
game_review::Rules, to compare them on annotated games and to go back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 02:23:19 +03:00
vrubelroman
68e2f49e3f Review: !! and ! calibrated on chess.com's marks of the Evergreen game
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
A sacrifice is a piece the move itself gives up; every move of a combination
is marked; a piece saving itself on the only good square and the only good
move of an equal position can be great. 7 of chess.com's 8 marks agree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 02:00:23 +03:00
vrubelroman
1aa85f59d3 Review: brilliant (!!) and great (!) moves; Android board shows move marks
Some checks are pending
CI / macos-build (push) Waiting to run
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
A sound piece sacrifice is !!, the only good move that turns the game is !,
by the rules of docs/research/brilliant-moves.md. Sacrifices come from a static
exchange count over the board (features.rs); the best other move comes from a
second engine search (searchmoves) only where the move played was the engine's
best and could be either. The marks go wherever errors go: report, notation,
graph, board badge, and into the PGN as $3/$1 unless the author's sign is there.
An older analysis is filled in by Update without evaluating it again.

The Android board now draws the move's mark in the corner of its square, as the
desktop does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 00:47:44 +03:00
vrubelroman
b3774d1651 Android: Rodent IV as a second opponent, with its characters and famous players
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The play sheet chooses Maia or Rodent IV, and Rodent's character in a full-screen
list (docs/design/android-rodent.md, docs/decisions.md «Rodent IV на телефоне»).
The engine is built from its authors' sources by androidApp/scripts/rodent4.sh
(patches: no wordexp.h on bionic; the search thread took its parameter by reference,
which clang builds read after it was gone) and ships in both APKs; the opening books
are one checked download. Rodent's tables, its book manifest and its opponent loop
move from the desktop into crates/play, shared by both apps; uci's EngineConfig takes
an environment (RODENT4HOME).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:03:02 +03:00
vrubelroman
f120c49fd4 Android: the lists dressed up (docs/design/android-lists.md)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The owner approved the designer's «А» for the games list and «Б» for the
databases screen:
- Games: a thin line between games, a disc of each side, the winner's «1»
  on a tile (and the name a little heavier), «½» on quieter tiles, the ECO
  on its own tag that never gives way; the game last opened marked and in
  sight; search matches marked, the ECO tag too. Search finds by the ECO.
- Databases: badges by kind in Catppuccin colours (Mocha dark, Latte light:
  PGN blue, ChessBase peach, archives mauve, online teal, own green, ♞ for the
  player's); the number of games stands out; groups as cards (16/4 dp
  corners, 2 dp apart); the game put aside with its position on a small board
  (no coordinates) and «Continue»; two equal, quiet buttons.
- Settings as cards with icons; the add sheet's icons in tiles of the kind.
- Fixed on the way (the tester): a list read anew after a quick new search
  could show another game's names in a row; clearing a search goes back to
  the top; tiles, tags and buttons grow with a large font.

Reviewed by the designer and the tester on the emulator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 19:29:04 +03:00
vrubelroman
56a30622fd Play: the engine's strength only in its name, no Elo tag (desktop and Android)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The owner: these are the engines' own ratings, «без поля эло, просто
число» — «Maia 1550», «Rodent V 2400 (Tal)»; the player's own rating keeps
its Elo tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:33:38 +03:00
vrubelroman
07a9e120b1 Android: Maia on her own scale (600–2600); games written into the player's database
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
As on the desktop (decisions «Партии игрока записываются сами», «Сила
соперника — по шкале самого движка»):
- mobile-api: Maia plays the rating on the slider, temperature 1; the sheet
  says it is her own rating, not a person's Elo.
- PlayerGames: «<name> — games against the computer» (no name: «Games
  against the computer»), an own database made at the first game; a game
  ends → written once (the mark kept with commit, guarded by the game's
  serial against a rematch); a game put aside and let go (×, «Start new»,
  Maia failing) → written unfinished, once both have moved.
- Play sheet: «Your name» with the phone's players (filtered by what is
  typed), the line where games go; result card «✓ В «…», № n ›» (a new
  database said there), opens it; no third button; a failed write said
  with its reason. ♞ on the row, «пишутся сами»; a setting.
- «Play from here» and «Continue it» inside a play game show the new game.

Checked on the emulator by the tester (kill right after the end, rematch,
rename/delete of the database, setting off) and the designer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:30:16 +03:00
vrubelroman
73593ddfc5 Play: Rodent V as an opponent (desktop): downloaded on request, strength and style
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The dialog (docs/design/rodent-opponent.md): «Maia · Rodent V» tiles, one
strength slider for both (Maia's zone marked; past it Rodent is chosen at
once), Rodent's style (Balanced, Attacking, Chaotic, Restricting, Classical,
Tal, Tal (network)) always in its place, greyed for Maia. Rodent V 1.2 (the
authors' release, pinned SHA-256) is downloaded and unpacked with its
personalities, nets and books; it plays through UCI at UCI_Elo from the
measured table (provisional until the measurement ends), with its book,
after Maia's human pause. Its own texts where Russian makes Maia «she» and
Rodent «he». The download helper is shared with Stockfish's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 03:02:55 +03:00
vrubelroman
b90bcdf3a3 Offer Maia a draw (desktop and Android)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The shared rule (play::accepts_draw): she accepts when clearly worse or mated,
or when about level (at most +0.2 for her) and her last three scores agree
within 0.3; after a refusal, again two of her moves later. Her judge keeps the
scores of her turns. Desktop: «½ Offer a draw» beside «Resign»; Android: a
«Draw» button in the game's bar (labels may take two lines).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 02:44:05 +03:00
vrubelroman
66f86ae3e5 Android: games against Maia (small model, no clocks)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
«Play with Maia» on the Databases screen and «Play on from here with Maia…» in
the move sheet: the strength (1100–1800), colour and name; Maia's 21 MB
downloaded there. The game is a mode of the game screen: Maia answers after a
person's pause (shared rules), take back, resign or abort, Maia's offer to
resign judged by Stockfish when it is there; the end card offers analysis,
rematch and saving. The game is written after each move: «back» puts it
aside, the Databases screen offers to go on with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 01:21:47 +03:00
vrubelroman
57cc4b2360 play: the tags of a game against Maia shared (desktop and Android)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 01:14:40 +03:00
vrubelroman
68941d3341 mobile-api: a session's own review; a new game from a move of another (play on from here)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 01:12:59 +03:00