Games· 1–5 minHextrisSpin the hexagon, match three coloursLogan Engstrom, Garrett Finucane, Noah Moroze, Michael Yang · GPL-3.0-or-laterLive previewOpen in new window
Chess vs. a tiny AI
Chess against a few hundred lines of minimax
Use on desktopGet the desktop app
- 1Download the packZip, runs offline
- 2Open Spare desktopmacOS, same account
- 3Import the packOpens while AI generates
About
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.
- How to play
- Drag a white piece (hover shows legal squares); “New game” restarts; auto-saves
- Controls
- Mouse · Touch
- Length
- 3–15 min
Changes and credits
- 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)
Discussion
Similar worksGames
See all
Games· 1–5 minHextrisSpin the hexagon, match three coloursLogan Engstrom, Garrett Finucane, Noah Moroze, Michael Yang · GPL-3.0-or-later
Games· 1–10 minParticle ClickerClick the detector, discover the HiggsIgor Babuschkin, Kevin Dungs, Tadej Novak, Gabor Biro, Jiannan Zhang · MIT
Games· 1–5 minAstrayRoll a ball out of a 3D mazeRye Terrell (wwwtyro) · Unlicense
Games· 2–6 minRadius RaidSpace shooter, wave after waveJack Rugile · MIT
Games· 2–10 mincube composerChain functions to reach the target patternDavid Peter · MIT
Games· 2–20 minA Dark RoomIt starts with a dying fireMichael Townsend (doublespeak games) and contributors · MPL-2.0
Games· 1–3 minStack TowerTime each dropSpare team · MIT
Games· 1–3 minLittle DinoThe classic one-button runnerThe Chromium Authors · BSD-3-Clause