# Glass Engine

Source: https://dinand.com/side-projects/glass-engine/
Author: Dinand Tinholt

> Play chess against an engine that runs in your browser and tells you what it sees: the line it expects, what your last move cost, and any forced mate.

Thinking time 0.3 s 1 s 3 s

What it sees

Your move. You have the white pieces, and I will say what I see once you have played.

0.0

Looked ahead: 0 half-moves

Speed: 0 per second

Positions, last move: 0

Positions, this game: 0

The line it expects

Moves so far

## The engine has no opening book and no table of stored answers.

It generates every legal move from the rules and searches the tree of replies with alpha-beta pruning. Positions at the end of each line are scored by material and by where the pieces stand. On a laptop that comes to a few million positions for every second of thinking.

The commentary is assembled from what the search found. It reports the line the engine expects, how the evaluation moved after your last move, and any forced checkmate. Your pawns promote to queens.

Written by Claude as a single file with no libraries. The move generator was checked against published perft counts for five test positions before this page went up.

[More side projects](https://dinand.com/side-projects/)

---
Site guide for AI agents: https://dinand.com/llms.txt
