ChessPenguin 0.2.0: screenshots in English and Russian, shorter better lines
Some checks failed
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
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 / publish (push) Has been cancelled

- New screenshots (Merida pieces, green board) in English and Russian:
  engine analysis, game review, engine marks, engine settings, library, settings.
- Better lines under marked moves show 6 moves and grow while stepping.
- CP_REPORT dev hook; version 0.2.0, changelog and AppStream release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubel 2026-10-18 12:10:40 +03:00
parent 56cfb4d09f
commit 26bf901124
23 changed files with 50 additions and 11 deletions

View file

@ -36,6 +36,8 @@ pub enum NotationCommand {
const ROW_H: f32 = 26.0;
const NUM_W: f32 = 38.0;
/// Moves of an engine's better line shown under a marked move.
const MARK_LINE_MOVES: usize = 6;
impl Notation<'_> {
pub fn show(self, ui: &mut Ui) -> NotationResponse {
@ -275,7 +277,9 @@ fn mark_block(ui: &mut Ui, n: &Notation, id: NodeId, mark: &Mark, out: &mut Nota
return;
}
ui.label(RichText::new(tr("Best:")).weak());
for (i, san) in mark.best_san.iter().enumerate() {
// Short by default; grows while the line is stepped through on the board.
let visible = MARK_LINE_MOVES.max(shown.unwrap_or(0));
for (i, san) in mark.best_san.iter().enumerate().take(visible) {
let label = match start {
Some((num, turn)) => {
let ply = i as u32 + u32::from(turn == Color::Black);
@ -310,6 +314,9 @@ fn mark_block(ui: &mut Ui, n: &Notation, id: NodeId, mark: &Mark, out: &mut Nota
out.best = Some((id, i + 1));
}
}
if mark.best_san.len() > visible {
ui.label(RichText::new("…").weak());
}
});
});
}