AttoChess, a complete, playable chess program for 16-bit x86 DOS in 278 bytes

A tiny chess miracle just dropped, and the comments instantly started a rules war

TLDR: A programmer built a shockingly tiny old-PC chess game in just 278 bytes, setting a new size record. The community is split between calling it genius and roasting it for missing rules, weird bugs, and the eternal internet question: does this even count as real chess?

A programmer has squeezed a fully playable chess program for old-school DOS computers into just 278 bytes, beating the previous size record and sending code fans into immediate awe. On paper, it’s a ridiculous achievement: it starts up, shows the board, lets you type moves, thinks a few steps ahead, and plays back. For a lot of readers, that alone was enough to trigger the usual internet reaction: "this is wizardry." One commenter even dragged in the legendary 1K ZX Chess, joking that this new project is so tiny that the headline about it is longer than some historic chess programs.

But of course, this being the internet, admiration lasted about five seconds before the nitpicking knives came out. The biggest fight? Whether this is "really chess" if it skips castling, pawn promotion, and en passant. One camp called it an astonishing feat of minimalist programming; the other basically went, nice stunt, but if the rules are missing, don’t call it complete. That argument got extra spicy when players started reporting bizarre behavior, including one person claiming they captured a pawn on H4 by moving their own pawn from H2 to H4, and another saying a mistyped move turned a bishop into a rook-room intruder and left them wondering whether their rook had been erased from existence.

Then came the 2020s subplot: was AI involved? One commenter openly wondered whether the program was helped along by modern language models, since its predecessor came from the pre-chatbot era. So yes, the code is tiny — but the comment drama around authorship, correctness, and what counts as “real chess” is absolutely huge

Key Points

  • The article says AttoChess is a fully playable 16-bit x86 DOS chess program that assembles to 278 bytes, 10 bytes smaller than the prior 288-byte record.
  • AttoChess is described as a derivative of LeanChess, preserving the same 0x88 board representation and recursive minimax search while keeping Shechtman's copyright and MIT license.
  • The program is presented as interactive and complete within its stated scope: it boots, draws the board, accepts keyboard moves, searches four plies deep, replies legally, and loops.
  • The article states that AttoChess omits castling, en passant, and promotion, and trusts moves entered in coordinate form such as e2e4.
  • Most of the byte savings come from removing the render buffer and printing board data directly with int 29h, with reproducible build steps showing a 278-byte .COM output.

Hottest takes

"no castling or en passent, so it's not really chess" — dwheeler
"Huge and unacceptable bug, this is a joke" — semitones
"the headline uses 298 bytes" — TMWNN
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.