AttoChess, a complete, playable chess program for 16-bit x86 DOS in 278 bytes(nicholas-afk.github.io) |
AttoChess, a complete, playable chess program for 16-bit x86 DOS in 278 bytes(nicholas-afk.github.io) |
Another thing that amuses me is that these tiny programs often claim to be “complete” chess engines while not actually implementing all the rules. This one doesn’t appear to support en passant, and likely doesn't have pawn promotion either.
If you’re allowed to arbitrarily redefine the scope of chess, then code size stops being as impressive a metric.
Instead it seems to have been "minimal thing that kinda looks like chess in yyy bytes"
Because then you're measuring on two axes. Which is better, 1500 elo in 300 bytes or 1550 elo in 310 bytes?
For a byte count comparison to make much sense, the program really ought to have a static target criteria.
Very cool this can be done in such a small amount of memory.
> Moves are trusted and given in plain coordinates: no click-to-move, no castling, en passant, or promotion.
Indeed, you can just play e1e8 and capture the opponents king (which doesn’t end the game). It’s a digital chessboard, not a chess engine.
Great Moments in PCMR History: A chess game published in 1982 includes a computer opponent but only uses 672 bytes of RAM. 1K ZX Chess has been described as "wizardry", "history's greatest game programming feat", and "the greatest program ever written". By comparison, this headline uses 298 bytes. <https://np.reddit.com/r/pcmasterrace/comments/3s9riy/great_m...>