HextrisSpin the hexagon, match three coloursChess vs. a tiny AI
Chess against a few hundred lines of minimax
Open-source work, ported to the web by Spare · Apache-2.0
Live preview · Chess vs. a tiny AIOpen in new window
Drag a white piece (hover shows legal squares); “New game” restarts; auto-saves
AboutWhat it is and how to play
The classic tutorial project: minimax with alpha-beta pruning and piece-square tables. You play White; the AI shows positions evaluated and time taken. Search depth 1–5.
DetailsSource and licence
- Author
- Lauri Hartikka
- Origin
- Open-source work, ported to the web by Spare
- Type
- Games
- Length
- 3–15 min
- How to play
- Drag a white piece (hover shows legal squares); “New game” restarts; auto-saves
- Controls
- Mouse · Touch
- Licence
- Apache-2.0
- Source
- github.com/lhartikk/simple-chess-ai★ 946 · as of 2026-09-25
- Version
- 665606d
- Changes
- Added a localized title bar, status line and “New game” button, in-page messages instead of alert(), a narrow-screen board and Spare pause/snapshot hooks (PGN saves); AI and board code unchanged. Includes chessboard.js (MIT), chess.js (BSD-2), jQuery (MIT)
- Attribution
- simple-chess-ai © Lauri Hartikka, Apache License 2.0 — modified by Spare (see SPARE-CHANGES.md)
ScreenshotsClick one to view it above
Use on desktopOpens while your AI works
- 01Download the pack
Zip, runs offline
- 02Open Spare desktop
macOS, same account
- 03Import the pack
Opens while AI generates
DiscussionSign in to join in
More works
From the same author or of the same kind.
HextrisSpin the hexagon, match three colours
Particle ClickerClick the detector, discover the Higgs
AstrayRoll a ball out of a 3D maze
Radius RaidSpace shooter, wave after wave
cube composerChain functions to reach the target pattern
A Dark RoomIt starts with a dying fire
Stack TowerTime each drop
Little DinoThe classic one-button runner