Play against Maia, a human-like neural network (600–2600), with Lichess time
controls, clocks, premoves, take-backs and a resignation offer when she is
lost; the always-queen setting. README, metainfo and third-party notices
(Maia-3: architecture after CSSLab/maia3, AGPL-3.0, under GPLv3 §13; weights
downloaded on request, not bundled). The website gains a section on playing
against Maia, in nine languages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every sound set gets a Defeat sound, played when Maia offers to resign: the
Lichess sets their own Defeat.ogg (sfx, piano, futuristic, nes — Enigmahack,
AGPLv3+, unmodified), the Kenney sets a falling tone of «Interface Sounds»
(CC0: clicks minimize_006, the pair of its checkmate maximize_006; wood
minimize_008; glass minimize_004), leading silence trimmed and the peak matched
to the set's checkmate sound. Sources in THIRD_PARTY_NOTICES.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When her position is lost — twelve pawns or more, or mated by force — on two
of her turns judged in a row, Maia offers to resign instead of moving: «Accept
the win» ends the game (You won · Maia resigned), «Play to the end» lets her
move and she does not offer again. The judge is ChessPenguin's Stockfish (else
the active engine when its file is there) in its own thread for the whole
game, 150k nodes a position, never shown; without an engine she plays every
game out. The clocks wait while the offer is open, also under the leave
question (one pause, the offer's) and at any end; a take-back closes it; a
verdict on a position gone is dropped.
The custom-time labels flush left in one column; «Yes» and «No» of «Resign?»
of one size.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Premoves in the game against Maia, as on Lichess: while she thinks, a move of
the user's piece by its pattern on an empty board (a pawn forward and both
diagonals, sliders through pieces, the king at home to castle with an own rook,
by the king's square or the rook's) is set and shown in dark blue; after her
move it is played at once when legal (a promotion as a queen), else dropped.
A right click or a click beside the own pieces cancels it; a take-back, the
leave question and the end drop it. A piece in hand stays there when Maia
moves, unless she took it.
Settings › Board: «Always promote to a queen», off by default — then the
piece is chosen, as before.
The dialog «Play against the computer» redone after the owner's review: You,
Opponent (the strength in the title, the slider edge to edge with 600/2600,
Weaker · As me · Stronger lit when they match, or a line asking for the
rating), Colour, Time; every choice a framed tile of one height, the tiles of a
row sharing its width; time 3+0…30+20 without category captions, Custom with
aligned sliders, Unlimited (no clocks) as a double tile; a solid scroll bar
in a low window, where the introduction is left out. Dev hook CP_PREMOVE.
Adjourning a game recorded as a task.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner's choices: the fastest control is 3+0 (the bullet presets and the
custom minutes below 3 are gone; a remembered bullet control falls back to
the default), 10+5 by default, «∞ No time limit» a tile of the grid like the
others. The tiles' lines are centred. The note on ratings says what it means:
Maia's scale is Lichess's, higher than FIDE and club ratings, so Maia 1500 is
weaker than a club player rated 1500. Decisions recorded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The toolbar's words (Take back, Abort, Resign, Yes/No) at 14 pt, as tall
as the icon buttons beside them.
- The result strip: four even buttons in a row when they fit; else Analyse,
Rematch and New game side by side, Save — each as wide as the strip.
- ♞ instead of ⚔ for Play and New game: at small sizes ⚔ read as a cross.
- Maia not downloaded: the main button says «Download and play» and starts
the game once she is there; the size line, progress and errors sit by the
buttons, outside the scrolling body.
- No unsaved mark during the game; an unnamed user is «You» in the title.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Leaving a game in progress any way (window closed, Find in database, an
update restart) asks «The game is on» first; «Resign and leave» asks nothing
more. Find in database and the game data are hidden during the game.
- Maia's pause is at most a fortieth of her time plus most of the increment,
and her clock takes the pause only, not the computing: she never flags.
- Take back gives the clock back to the user (and a first move stays free).
- Maia plays no move a tenth as likely as her best: human mistakes, not a
2600 hanging her queen.
- The clocks stand on screen while «The game is on» is open.
- The moves played are not undone with Ctrl+Z after the end.
- The dialog body scrolls in a low window; its buttons stay in view.
- «Viewing an earlier position» has its own strip above the user's clock.
- Weights that do not load are removed, so the dialog offers them again.
- Who could not mate when time ran out is said right.
- The checkpoint reader: checked sizes and offsets, bounded memo values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
«⚔ Play» (Ctrl+G) opens «Play against the computer»: name and rating
(optional), strength 600–2600 (or weaker/as me/stronger), colour, Lichess time
controls, custom, no clock. The game screen in play mode: clock cards above
and below the notation (read-only), take back, resign (abort before the first
moves); no engine, analysis or editing. Maia answers in a background thread
with a human-like pause bounded so she never loses on time; stale answers are
dropped. Endings: mate, stalemate, no material, threefold, fifty moves, time
(draw when the other side cannot mate), resignation; then the result strip
(Analyse, Rematch, New game, Save to a database) and an ordinary game with the
tags of a played game and [%clk]. Leaving during a game asks (resign and add /
resign and leave / keep playing), the clocks wait meanwhile. maia reads the
published PyTorch checkpoint directly (zip + a small pickle reader that refuses
everything but tensors); maia_download fetches it on request (pinned revision,
SHA-256). Dev hooks CP_PLAY, CP_PLAY_AUTO, CP_MAIA. Russian texts; the other
languages follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 5M model (8 transformer blocks with generated attention bias) computed with
plain f32 loops: no ML runtime, no Python. Weights in a small own format (f16,
10 MB) written by scripts/maia-convert.py from the published checkpoint; the
shared bias tensor is kept once. Agrees with the original PyTorch model to four
decimals on the reference positions (tests/reference.json, an ignored test that
needs the weights); about 85 ms per position on one CPU core. Also the
analyst's research for playing against it (docs/research/play-mode.md).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shift+Enter is a paragraph (checked before Enter); the editor does not widen the
narrow panel (22-wide symbols, tighter margins); a variation's continuation after
the editor starts with the move number; 💾, «Add to database…», quitting and a
line preview write the draft first; Ctrl+1…6 with the editor open change its
draft; the ☰ item sits after «Game data…». Look: «Done» at the far right, Cancel
as tall; painted ✓/✕ in a narrow panel; 24-wide symbols with both groups on one
line at 1400; the pressed symbol in the selection's text colour; the field in its
own box; a readable hint line; the field capped so a notation row stays above
and below; the end of a long comment in view; the comment block lights up under
the mouse; the field is named after the title.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A short note in the interface language's script inside a book of another script
(and a longer one the detector tells unreliably) is the reader's own: it is left
out of the translation plan. The comment block, not only its text, takes the
double click and the right button.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Enter on a move (the move's menu, a double click on a comment, the ☰ menu) opens
the editor where the comment stands: after any move, in a variation too (the
flow is cut at the move), or at the start of the game; Enter — done, Esc —
cancel, Shift+Enter — a paragraph; another move writes the draft; one edit —
one undo step. Symbols of the move (! ? !! ?? !? ?!, Ctrl+1…6) and of the
position in the editor and in the menu. The right mouse button draws arrows
and circles on the board ([%cal]/[%csl] of the current move; colours by
modifiers). Existing comments are edited and deleted; their commands and
untouched bytes are kept. chess_core: with_text, with_shapes, shapes,
Game::set_comments_before. Dev hooks CP_COMMENT_EDIT, CP_TYPE, CP_SHAPE.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Comments were reflowed word by word, so a book comment's paragraphs became one
after Ctrl+S or «Add to database». Lines are still reflowed, blank lines kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cards row holds only databases; «+ Add database», «✚ New database» and
«🌐 Online games» stand beside «Databases» (folded to «+ ▾ 🌐» when narrow); an
empty shelf shows them as large cards. A database that takes games has «+ Game»
in its table header: a new game meant for it, whose Ctrl+S adds it there (the
target is dropped when the base leaves the shelf or stops taking games). The
chooser lists only databases that take games; with none, «✚ New database…» is
the main button; the UTF-8 copy is in the card menu (also for a file not read
yet). Built-in samples are read-only. An empty database has no filter panel or
search; a narrow search field says «🔍 Search». The table header keeps a short
database name. Task 8 closed: the quick search stays.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Desktop: «✚ New database» on the shelf (Ctrl+Shift+N), «Add to database…»
(Ctrl+Shift+S, 💾, ☰) for any game — new, pasted, from a ChessBase, online or
legacy-encoded database — into a PGN of the user's choice; Ctrl+S saves the
changes back into the game's own PGN (its record is replaced) or adds the game
when the source is read-only; the game data editor (F2, the title, ☰) asked once
when a new game is first added; duplicate check (same players, date, moves →
replace / add as new, no Enter); delete from the table with a question and Undo
(Ctrl+Z, 6 s, waits under the mouse); UTF-8 copy for legacy-encoded files with
the restored letters; online and ChessBase stay read-only. Writes are explicit:
append, or an atomic rewrite through a temporary file and a rename (through a
symlink, keeping the mode, syncing the folder), refused when the file changed on
the disk. chess_core::pgn::store: append/replace/remove/restore/write_utf8_copy,
find_same_game, pgn_date; Game::remove_tag and order_roster. Settings: your
name (annotator), the folder for new databases, the last target. Nine languages.
Also: library warnings (wgpu, winit) go to chesspenguin.log, CP_LOG_FRAMES=1
traces egui_wgpu frames (the GNOME hang hunt); dev hooks CP_OWN, CP_PASTE,
CP_COMMENT, CP_KEYS with Ctrl+, CP_SETTINGS=interface.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
packaging/icons/make-icons.sh makes every icon from one picture: the Linux hicolor PNGs
(the macOS .icns and the packages take them), the window icon, the Windows .ico, the
Android adaptive foreground (62 % of the 108 dp canvas) and a solid monochrome one for
themed icons, the site's tab, header and iOS icons. The site's link preview takes the
transparent icon and names Android too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Windows installation 'in Cheyenne' right after a release is Microsoft's scanner running
the new program in Azure. The DB-IP Lite ASN database (fetched like the city one) tells
the networks of Microsoft, Amazon, Google, Oracle, Alibaba, Tencent and IBM apart: their
launches are not counted or announced, their downloads and visits count as crawlers.
Small hostings are left alone: people's VPNs run on them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card on Databases: the new version, «you have …», one button and ×. × turns
«Offer new versions» off (a snackbar says where to turn it on, with Undo); the update
check and the installation counting go on. Settings → About: «Offer new versions» above
«Check for updates at start»; a new version is shown and installable there regardless.
'What's new' (GitHub, English) is gone from the card, the sheet, About and the
after-update snackbar; the old per-version hiding is dropped (android-ui.md §25, §28).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>