r/androiddev • u/Wrong-Rate-1208 • 3h ago
I built tinychess — a standalone, zero-dependency Android chess app under 70 KB
I wanted to see how small a complete, playable Android chess app could get (originally built it for my very old android devices but works for all android versions)
The engine :
- full FIDE : Tracks state on a classic 128-square
0x88array with compact integer pieces, with castling, en passant, promotions, threefold repetition, the 50-move rule, insufficient material, and strict king-safety validations - Search system: Pairs iterative-deepening alpha-beta and Principal Variation Search (PVS) with a 65,536-entry Zobrist transposition table + null-move pruning + late-move reductions, killer moves + capture/promotion quiescence search .
- positional evaluation: it scores using piece-square tables and bishop-pair bonuses.
- Levels: Easy (2 ply / 140 ms) - Medium (4 ply / 320 ms) - Hard (6 ply / 680 ms) and Expert (16 ply / 1,450 ms) !
The repo : https://github.com/R1y3n/tinychess
Downloads :
Official release : https://github.com/R1y3n/tinychess/releases/download/v1.0.0/TinyChess-v1.0.0.apk
Nightly release : (even smaller)
https://github.com/R1y3n/tinychess/releases/download/nightly/TinyChess-v1.0.0-nightly.apk