Opponent prep: which games by period or number, saved preparations

The report takes all the player's games, those of the last 1/2/5 years
before his newest game, or his last 50/100/200 of each colour; every
choice shows how many games it takes. Undated games count only with all.
«💾 Save» keeps a preparation with its errors in the program's data;
«📑 Preparations» in the library opens, renames and deletes them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-31 18:11:58 +03:00
parent 1ac5645ef7
commit 57fa98241b
12 changed files with 1334 additions and 37 deletions

View file

@ -169,6 +169,8 @@ pub struct PrepSettings {
pub book: Option<PathBuf>,
/// Plies of the opening the report looks at.
pub plies: usize,
/// Which of the player's games.
pub period: prep::Period,
/// Moves with fewer games fold into «other moves».
pub branches_from: u32,
/// The colour was chosen in the dialog once: the button starts the engine at once.
@ -184,6 +186,7 @@ impl Default for PrepSettings {
Self {
book: None,
plies: 20,
period: prep::Period::All,
branches_from: 3,
chosen: false,
inaccuracies: true,