← Streetlight back to all nodes
tool node · 2026-07-01 chess game-tree-search

Glass Chess

A playable chess engine whose entire brain is three visible, adjustable rules — you play White, it plays Black, and every reply it considered shows up as arrows plus a plain-English breakdown of the math.

Extracted into its own node so the engine can stand alone, get published, and be played without wading into the full game-tree-search tutor lens. The engine's board + move-generation logic is lifted from the perft-verified chess-engine-scaffold; the "brain" on top is three named, weighted rules: 💰 grab material, 🎯 fight for the center, 🛡️ don't hang pieces. Turn all three to 0 and it plays the first legal move it finds — you'll crush it. Turn them up and watch it stop blundering.

Pick a lens (Material / Center / Safety) to paint that rule onto the board, hover any piece for a plain-English read of its role, and after each of your moves read "how it picked its last move" — the actual arithmetic behind the move it played.

↳ connections

Nothing stands alone — what is this in relation to?

↳ relates to tutor-widgets (the "▶ Play the engine" block this was extracted from) and archive/chess-engine-scaffold (the perft-verified board + move-gen engine this plays on top of)