Sergio Adan Bermudez

Play 580 nm chess, desktop and Android

Caïssa

A chess app that teaches through the history of the game, then helps me prepare for a tournament. It runs on my computer and my phone, with no account and no connection.

The story16 chapters, 143 scenes
Checked by568 tests
Maia on the phone14 to 62 ms a move
The Caïssa home screen. Two doors, the journey and the workshop, with chapter cards under them, over a painted scene of a chess café.
Two doors: the journey through chess history, and the workshop for preparing games.

Part of Work, What I'm doing

I wanted to learn chess the way you follow a story. Elias, an old storyteller, takes you from the Café de la Régence in 1749 through Morphy, Capablanca and Fischer to AlphaZero and today.

Each chapter is a painted scene with narration, then three paths: beginner, intermediate and advanced. Once the lessons were running, I added a second door for tournament preparation.

. What it does

Learn from the story, prepare from the games

A lesson

Every lesson goes the same way: a worked example, a guided exercise with a hint and two tries, then a game or mini-game. The real games are played against Maia, a neural network that plays like a human of a chosen rating. A layer called Elias’s intuition lights the squares a player at your level would probably consider.

A painted scene of Elias, an old man in a red coat, teaching a young man by candlelight, with the narration text and a play bar under it.
A scene from the 1749 chapter. The paintings were made on my own computer with FLUX.1-schnell, and the voice with Piper.

Tournament preparation

The workshop keeps repertoire files with coverage and spaced repetition (FSRS), an opening tree with a Maia column showing what players of a given rating actually play, an opponent dossier and a one-page sheet to print.

The repertoire trainer in English, showing a board with an opening position and a list of lines to drill.
The repertoire trainer, with sample lines.

On the phone

The Android app carries the same lessons, and Maia runs on the phone itself, 14 to 62 ms an answer on the emulators I tested. The desktop and the phone sync over my home Wi-Fi.

Three phone screens: a story scene, a lesson exercise with a hint button, and the tournament preparation list.
A scene, an exercise and the preparation list on the phone.

. How it is built

Rules and an engine decide, the model explains

  1. The truth rule. The chess rules and Stockfish produce every fact. A local language model, Elias, only puts those facts into words. It runs through llama.cpp.
  2. Checked content. Every position, move and mate in the lessons is verified by a test, and a wrong move fails the build. There are 568 tests in the core module.
  3. The content. 16 chapter files and 143 scenes, 172 painted images, seven opening packs plus endgames and 27 puzzle themes. The app speaks French, Spanish and English.
  4. The tournament index. 935,290 games (210 MB) from public Lichess broadcasts under CC0. That is a sample of the game, not all of it, and I kept it to data I can share.

Kotlin, Compose for Windows and Android, llama.cpp, Stockfish, Maia-2, Piper, FLUX.1-schnell

Status: a personal project in progress. Not released.