TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

1-kilobyte chess game

25 pointsby idiotclockover 10 years ago

5 comments

jamesbrownuhhover 10 years ago
Of course 30 years ago there was &quot;1K Chess&quot; for the Sinclair ZX81 (Timex&#x2F;Sinclair 1000 for US readers) - which, despite the name, was actually just 672 bytes of code. (The program had to run in a machine with 1K of memory _total_, which obviously included space for the machine&#x27;s workspace and display file - itself ingeniously optimised to only occupy memory space for parts of the screen that had been printed on.)<p><a href="https://chessprogramming.wikispaces.com/1K+ZX+Chess" rel="nofollow">https:&#x2F;&#x2F;chessprogramming.wikispaces.com&#x2F;1K+ZX+Chess</a>
jonjackyover 10 years ago
Here is chess in 1 kb, written in 6502 assembler for the KIM-1 -- in 1976!<p><a href="http://www.benlo.com/microchess/" rel="nofollow">http:&#x2F;&#x2F;www.benlo.com&#x2F;microchess&#x2F;</a><p>The instructions say, &quot;If you are an above average player, you may find that the MICROCHESS program is below your level ...&quot;
CurtMonashover 10 years ago
Just tried the 2 KB (fast) version as White. Trapped Black&#x27;s queen on my 7th move.<p>Mate took 20 moves or so total.
nathellover 10 years ago
Got stalemated with a bare king against four queens and stuff.
waynecochranover 10 years ago
Wow -- that&#x27;s impressive -- 1kb -- really?