2026-10-18 01:54:06 +03:00
|
|
|
// No console window for release builds on Windows.
|
|
|
|
|
#![cfg_attr(all(windows, not(debug_assertions)), windows_subsystem = "windows")]
|
|
|
|
|
|
|
|
|
|
mod analysis;
|
|
|
|
|
mod app;
|
|
|
|
|
mod assets;
|
|
|
|
|
mod board;
|
2026-10-18 11:53:30 +03:00
|
|
|
mod engines;
|
2026-10-18 01:54:06 +03:00
|
|
|
mod game_view;
|
|
|
|
|
mod i18n;
|
|
|
|
|
mod library;
|
|
|
|
|
mod notation;
|
Game analysis: whole-game engine review with graph, report and notation marks
- Separate background engine job over the main line (go nodes N), live engine
paused meanwhile; header button with progress/cancel, Shift+A.
- Lichess-method metrics: win %, move/game accuracy, inaccuracy/mistake/blunder,
ACPL, accuracy per game phase.
- Evaluation graph under the board, Report tab, engine badges and better lines
in the notation (preview on click), launch dialog with quality/threads/memory
and time estimate.
- Results cached in ~/.cache/chesspenguin/analysis; [%eval] read from PGN.
- Write analysis to the game as one undo step (chess-core: Game::annotate,
Game::edit_group).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 11:03:23 +03:00
|
|
|
mod report;
|
|
|
|
|
mod review;
|
2026-10-18 01:54:06 +03:00
|
|
|
mod settings;
|
|
|
|
|
mod settings_ui;
|
|
|
|
|
mod sound;
|
2026-10-18 14:00:19 +03:00
|
|
|
mod viewed;
|
2026-10-18 01:54:06 +03:00
|
|
|
mod widgets;
|
|
|
|
|
|
|
|
|
|
fn main() -> eframe::Result {
|
|
|
|
|
let options = eframe::NativeOptions {
|
|
|
|
|
viewport: egui::ViewportBuilder::default()
|
|
|
|
|
.with_app_id("io.github.vrubelroman.chessPenguin")
|
|
|
|
|
.with_title("ChessPenguin")
|
|
|
|
|
.with_inner_size([1400.0, 900.0])
|
|
|
|
|
.with_min_inner_size([900.0, 600.0])
|
|
|
|
|
// X11 uses this; on Wayland the icon comes from the .desktop entry matching the app id.
|
|
|
|
|
.with_icon(
|
|
|
|
|
eframe::icon_data::from_png_bytes(include_bytes!("../assets/icon-256.png"))
|
|
|
|
|
.unwrap_or_default(),
|
|
|
|
|
),
|
|
|
|
|
..Default::default()
|
|
|
|
|
};
|
|
|
|
|
eframe::run_native(
|
|
|
|
|
"ChessPenguin",
|
|
|
|
|
options,
|
|
|
|
|
Box::new(|cc| {
|
|
|
|
|
assets::install(&cc.egui_ctx);
|
|
|
|
|
Ok(Box::new(app::App::new(&cc.egui_ctx)))
|
|
|
|
|
}),
|
|
|
|
|
)
|
|
|
|
|
}
|