Sample databases on the first start: 38 classic games and Alekhine's 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

The library is no longer empty at the first start: Classic games (the four annotated
samples plus 34 famous games from Steinitz to Carlsen, each with a short introduction
of our own) and Alekhine (267 games, moves only, the book's commentary removed). They
are built in, written once to the data directory and put on the shelf; a sample
removed from the shelf does not come back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-19 12:21:09 +03:00
parent 97d38ec919
commit 673f447491
7 changed files with 5530 additions and 3 deletions

10
examples/README.md Normal file
View file

@ -0,0 +1,10 @@
# Sample databases
ChessPenguin puts these on the library shelf at the first start (they are built into
the program, see `apps/desktop/src/examples.rs`).
- `classics.pgn` — 38 famous games from 1851 to 2016. The game records (players, event,
date, result, moves) are historical facts; the comments and the annotated variations
are written for ChessPenguin and are covered by the project's licence (GPL-3.0-or-later).
- `alekhine.pgn` — 267 games of Alexander Alekhine: game records only (tags and main-line
moves). The commentary of the source collection was removed and is not distributed.