Amir Temur Chess
The chess of Amir Temur, playable again.
In plain words
- What it is
- An online game of Amir Temur’s chess — a 14th-century chess variant on an 11×10 board, with unusual pieces.
- Who it’s for
- Chess and history lovers, school students and anyone interested in Uzbekistan’s heritage.
- What it gives
- Play a friend on one device, the computer or someone online, learn the rules and solve puzzles. Before, there was almost nowhere to play this game.
Amir Temur Chess brings Shatranj Kamil — the chess played at the Samarkand court in the fourteenth century — online. Eleven files, ten ranks, twelve kinds of piece and two citadels. Play on one device, against the computer or online, learn the rules, solve puzzles and join tournaments.
Business context
Tamerlane chess (Shatranj Kamil) is the larger chess played at the Samarkand court in the 14th century. Its rules are documented by historians but rarely playable online.
The problem
Tamerlane Chess is part of Uzbekistan’s history, but its rules live in historical sources and there was almost nowhere to actually play it.
The solution
A complete web game with a rules engine for the 11×10 board, a computer opponent with selectable difficulty, online play, learning materials based on historical sources, puzzles, a leaderboard and tournaments — with sign-in through My-IT.
What I built
Built alone — architecture, code and production. No other developers worked on it.
Architecture
- The rules engine and the AI run in the browser; the AI in a Web Worker so the board never freezes
- Online games over WebSockets on private per-game channels
Backend
- Laravel API: matchmaking, challenges, spectating, tournaments, puzzles, clans, seasons, leaderboard
- Laravel Echo with Reverb: move, chat and draw-offer events on channel game.{id}
Frontend & apps
- React game: 11×10 board with two citadels and 12 piece types
- Special rules: the shah entering the opponent’s citadel, the three-stage “pawn of pawns”, the one-time royal swap
- A 3D board on three.js
APIs & integrations
Technical decisions & trade-offs
- Search that fits the browser — Negamax with alpha-beta pruning, iterative deepening, a transposition table and quiescence search, stopped by a time deadline: depth 1 / 400 ms, 2 / 1.2 s, 3 / 3.5 s. (Trade-off: Shallow depth on the larger board — the easy and medium levels add randomness among near-best moves instead.)
- AI off the main thread — The engine runs in a Web Worker, so animations and input stay smooth while it thinks. (Trade-off: State has to be copied to the worker for every search.)
- Rules from sources — The rules and the chronicle cite historical sources from Ibn ʿArabshah to Cazaux and Knowlton (2017).
Core modules
- 11×10 board, 110 squares, 12 piece types, 2 citadels
- Pass-and-play on one device
- Play against the computer — choose side and difficulty
- Online matches
- Rules based on historical sources
- Puzzles
- Leaderboard
- Tournaments
- Live games
- Sign-in with My-IT
Results
- 12 piece types, two citadels and the special rules implemented
- Computer opponent in three levels
- 4 players on the leaderboard so far (November 2026)
chess.my-it.uz
Boburbek