Android: game report — mistakes, blunders and accuracy, as on the desktop

The game analysis of the desktop (evaluations of the main line, judgements, accuracy,
cache and the engine job) moves into a shared crate, game-review, so both apps give the
same numbers. The desktop uses it unchanged in behaviour.

On Android, ⋮ → «Game analysis» runs Stockfish over the main line in its own process
(the live engine waits): an evaluation graph and a status row between the board and the
notation, marks in the notation, the better line of an error on the board, a report sheet
with both players side by side. Games with [%eval] and games analysed before show their
report at once. The analysis stops with the screen and goes on after it, also after the
phone is turned, and is cached as it goes.

Reviewed by an independent tester and designer (docs/design/android-ui.md §21, §22).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-23 14:10:58 +03:00
parent 7fcc75c7af
commit 1661e238d8
31 changed files with 3016 additions and 567 deletions

View file

@ -26,8 +26,7 @@ egui/eframe 0.36 (wgpu, Wayland/X11). Бинарник `chesspenguin`, app id `i
| `engine_download.rs` | Скачивание официального Stockfish по запросу (решение 14): закреплённые архивы и SHA-256 по платформам, загрузка с прогрессом и отменой, проверка суммы, распаковка в каталог данных, пробный запуск |
| `engine_offer.rs` | Окно «Для анализа нужен движок» (`docs/design/engine-download.md`): предложение, «уже установлен на компьютере», «файл пропал», ход загрузки, ошибки, индикатор скрытой загрузки; после установки запускает то, ради чего пришёл пользователь |
| `engines.rs` | Поиск движков: встроенный Stockfish (`<prefix>/lib/chesspenguin/stockfish` или `stockfish/` рядом с exe), системный `stockfish` в `PATH`; настройка при первом запуске, подсказки в настройках |
| `report.rs` | Метрики анализа партии без UI: шанс на победу, точность хода и партии, неточность/ошибка/зевок, средняя потеря сантипешек, стадии партии (формулы Lichess) |
| `review.rs` | Анализ партии целиком: фоновый поток с собственным процессом движка (`go nodes N`), кэш, `[%eval]` из PGN, график, вкладка «Отчёт», окно запуска, запись анализа в партию |
| `review.rs` | Анализ партии целиком на компьютере: фоновый поток задания, график, вкладка «Отчёт», окно запуска, запись анализа в партию. Оценки, суждения, точность, кэш и само задание движка (`go nodes N`) — в общем крейте `crates/game-review` (вместе с Android) |
| `assets.rs`, `sound.rs` | Встроенные SVG-фигуры, темы доски, звуки (rodio в отдельном потоке) |
| `settings.rs`, `settings_ui.rs` | JSON в `$XDG_CONFIG_HOME/chesspenguin/settings.json` (атомарная запись), окно настроек |