Smallest MS-DOS Chess Program With All Official Chess Rules

Brazil

Be the first to like this record

About

Recife, Brazil / November 26, 2026

Igor Medeiros of Recife, Brazil wrote CH84.COM, a human-versus-computer chess program for MS-DOS that fits in 1,984 bytes. The video shows the file size in Windows and in a DOS directory listing, then a game in DOSBox-X that the human wins with a four-move checkmate, which the program announces. A further continuous screen recording sent to the RecordSetter Council on 26 November 2026, again of a 1,984-byte CH84.COM, showed castling on both sides, an en passant capture, a pawn promoting to a knight, a move that ignored check being refused, and a draw declared by threefold repetition. Less than two kilobytes, and it still knows a draw when it sees one.

Tags: smallest, chess, programming, coding, computers

Rules

- The program must run as a single standalone MS-DOS executable (.COM or .EXE) on MS-DOS or a DOS emulator such as DOSBox, with no external chess engine, data files or libraries beyond DOS itself.
- The record is the total size of that executable file in bytes, shown in the video in a DOS directory listing or the file properties.
- The program must display the board and pieces on screen and let a human play a complete game against a computer-controlled opponent.
- The program must implement all of the official Laws of Chess: legal moves for every piece, kingside and queenside castling with all their conditions, en passant, promotion to a queen, rook, bishop or knight, refusal of any move that leaves or puts the king in check, and recognition of checkmate, stalemate, threefold repetition, the fifty-move rule and insufficient material.
- Evidence must be a continuous, unedited screen recording of the measured file showing its size and gameplay that includes castling on both sides, an en passant capture, a promotion to a piece other than a queen, the refusal of an illegal move, and a game ending in checkmate, stalemate or a draw.
Comments
Under review comments