Top all-time · #1616
Chess programs, 8080 emulator, and retrogaming
Personal blog · nanochess.org · on HN as nanochessgamesprogrammingsystems
Chess programs, 8080 emulator, and retrogaming is a personal blog at nanochess.org about games, programming and systems. Since 2014, 47 different Hacker News readers have linked it 76 times, most often “JavaScript Chess Game in 2.1kb”. No feed was found, so read it on the site itself.
My winning entries from contests like the IOCCC, JS1K and MSXdev, also the world's smallest chess programs written in C, Java and Javascript, and retrogames.
Most-linked posts?
- JavaScript Chess Game in 2.1kb4 people · 4 mentions · first linked 2020-11-07
- Nanochess4 people · 4 mentions · first linked 2020-12-25
- /chess6.html3 people · 3 mentions · first linked 2023-06-08
- IntyBASIC: A Basic Compiler for Intellivision3 people · 3 mentions · first linked 2023-05-27
- /chess.html3 people · 3 mentions · first linked 2020-01-18
- A chess program in 481 bytes of x86 machine code3 people · 3 mentions · first linked 2015-02-03
- /chess.html2 people · 2 mentions · first linked 2014-08-04
- /chess4.html2 people · 2 mentions · first linked 2021-03-07
- /author.html2 people · 2 mentions · first linked 2024-03-19
- I coded a Pascal compiler for transputer as a teen in 19932 people · 2 mentions · first linked 2025-02-05
What Hacker News says?
See also nanochess https://nanochess.org/chess4.html
Comment linking /chess4.html
on “The Kilobyte’s Gambit”Submitted My teen years: The transputer operating system as a story · 257 points
HN discussionYou can see the Math.random call in the source code: https://nanochess.org/chess4.html#sour
Comment linking /chess4.html
on “The Kilobyte’s Gambit”Submitted Intel 8080 emulator. 19th IOCCC. Best of Show as a story · 256 points
HN discussionOriginal engine's here (only looks ahead 3 steps instead of 4) https://nanochess.org/archive/tiny_chess_2.html
Comment linking /archive/tiny_chess_2.html
on “The Kilobyte’s Gambit”Submitted I coded a Pascal compiler for transputer as a teen in 1993 as a story · 180 points
HN discussionThis is the same engine but doesn't look quite as far ahead https://nanochess.org/archive/tiny_chess_2.html
Comment linking /archive/tiny_chess_2.html
on “The Kilobyte’s Gambit”Submitted My first Z80 assembly language program as a story · 116 points
HN discussionI think https://nanochess.org/archive/tiny_chess_1.html is that, possibly for an older/newer version of the engine (found via https://nanochess.org/chess4.html#sour , which SatvikBeri mentioned in a different message) Still looks a bit weird on my iPad (huge black pawns), but easier to beat because it’s easier to see the board.
Comment linking /chess4.html
on “The Kilobyte’s Gambit”Submitted Completing a BASIC language interpreter in 2025 as a story · 101 points
HN discussionThe javascript engine: https://nanochess.org/chess4.html#sour The slightly older C version: https://nanochess.org/chess1.html The author wrote a book commenting and explaining the C version, it's 170 pages long! https://nanochess.org/chess3.html#book Edit: MicroMax is a close competitor that also has very good explanations on their website https://home.hccnet.nl/h.g.muller/max-src2.html .
Comment linking /chess3.html
on “The Kilobyte’s Gambit”Submitted Coding a new BASIC interpreter in 2025 to replace a slow one as a story · 87 points
HN discussionhttps://nanochess.org/ https://www.lulu.com/shop/oscar-toledo-gutierrez/toledo-nano...
Comment linking /
on “The Kilobyte’s Gambit”Submitted LOCS: Language developed at age 9 in Z80 machine code (1988) as a story · 81 points
HN discussionIf anyone’s interested in the guts of this, you can get Oscar Toledo’s annotated source of the C version of Nanochess at: https://nanochess.org/chess3.html
Comment linking /chess3.html
on “The Kilobyte’s Gambit”Submitted Development of a transputer ISA board as a story · 78 points
HN discussionÓscar Toledo G. has notably written various tiny, strong and highly obfuscated chess engines in C (winning the IOCCC twice) and JavaScript (2nd place in the first JS1k). He's even written a 170 page book to serve as a reference to the 1326-byte "Nanochess" program, his strongest small chess engine. http://www.nanochess.org/chess.html
Comment linking /chess.html
on “Sunfish: A simple but strong chess engine in 111 lines of Python”Submitted Making portable my unportable transputer C compiler as a story · 74 points
HN discussionI can't beat the famous 1k JavaScript version either. I was better when I was younger. https://nanochess.org/archive/toledo_javascript_chess_3.html
Comment linking /archive/toledo_javascript_chess_3.html
on “Stockfish 19”Submitted Viboritas: Reverse engineering of my 1990 game (I was 11 years old) as a story · 73 points
HN discussionGood catch -- those same books show up on the nanochess site: https://nanochess.org/author.html Odd that he doesn't mention the "scientist" people may be looking for is his father, but everything else lines up.
Comment linking /author.html
on “Intel 8080 emulator. 19th IOCCC. Best of Show”Submitted La Cueva BBS in Mexico in 1993 (session replay) as a story · 72 points
HN discussionWow, that sent me down a rabbit hole -- but this line from the homepage makes it sound like he is _not_ part of that family? > If you're looking for information about the Mexican scientist Oscar Toledo Esteva, then please go to the History page of the Familia Toledo organization site. https://nanochess.org/index.html
Comment linking /index.html
on “Intel 8080 emulator. 19th IOCCC. Best of Show”Submitted My first Z80 assembly language program as a story · 57 points
HN discussionMade by Oscar Toledo G., who learned assembly language by age 9 and won the International Obfuscated C Contest five times. https://nanochess.org/author.html
Comment linking /author.html
on “BootLogo: Logo language in 508 bytes of x86 machine code”Submitted Show HN: Transputer emulator in JavaScript (fast enough to be useful) as a story · 55 points
HN discussionI often wonder what sort of tools like this must have existed in-house at the many small game development studios of the era. This one reminds me of another modern compiler for the Intellivision console called INTYBasic, which has an extremely impressive suite of games and NES remakes implemented in it: https://nanochess.org/intybasic.html https://youtu.be/h7ttNz2UVw8 For something even higher level check out GBStud…
Comment linking /intybasic.html
on “NESFab – A new programming language for creating NES games”Submitted Atari 2600 Video Chess disassembled and commented as a story · 35 points
HN discussionIt didn't understand castling, en passant and promotions. It would also only play white. I did once try to pit it against a modern engine. It seemed to do reasonably well until the modern engine sneakily castled, and I was unable to tell 1k Chess about this, thus forcing it to forfeit the game. Of course, since posting that, I since found this: http://nanochess.org/chess6.html Chess for the PC; 392 bytes. You put it…
Comment linking /chess6.html
on “A step-by-step guide to building a simple chess AI”Submitted IntyBASIC: A Basic Compiler for Intellivision as a story · 34 points
HN discussion