Computer chess in 487 bytes

    The record for the minimum implementation of computer chess since 1983 belonged to the 1K ZX Chess program . On a Sinclair ZX81 computer, it occupied 672 bytes of memory. At the same time, the program contained almost all the rules of a chess game, as well as a bot for playing against a person. The first description of the game in Your Computer Magazine in February 1983 32 years later, this record is broken. Red Sector Inc. Group implemented a fully playable version of BootChess chess in just 487 bytes! The readme file contains the source code of the program. For comparison, here's what the 1K ZX Chess interface looked like. Classic Start: e2-e4 And this is BootChess.

















    BootChess is another amazing example of assembly language programming. Such examples are often found on the demoscene, but it is rarely possible to break a record that has stood for 32 years. Even more impressive is the implementation of BootChess. The program runs from the boot sector on compatible computers under any operating system, whether it be Windows, Linux, OS X or BSD.

    Also popular now: