🤖♟️ Can you beat this tiny chess engine? | The Kilobyte's Gambit | Chess Chats #15

🤖♟️ Can you beat this tiny chess engine? | The Kilobyte's Gambit | Chess Chats #15

Avatar of vitualis
| 8

#kilobytesgambit #tinyengine #chesschats 

Click to subscribe to my YouTube channel!


On today’s Chess Chats I’m going to showcase a pretty amazing TINY chess engine that’s written in Javascript and only 1024 bytes (yes, BYTES! 😲) in size! I’d previously played against my childhood chessbot nemesis, CHESS88, a DOS program from the 1980s and comparatively, it’s gargantuan at 9 kbytes!

The Kilobyte’s Gambit is available online for free and is inspired by the hit Netflix show, The Queen’s Gambit. I’d only discovered it this year and, in the video, I mistakenly thought that it was released in 2025. Further investigation while writing the article identified that it was actually released in 2021. The engine is adapted from code written by Oscar Toledo G who seems to have a passion for writing these tiny programs!

Now, I thought that a 1024 kb engine was impressive, but on his website one can find Toledo Atomchess, which is compiled in x86 machine code and is a staggering 326 bytes! And his code includes the logic for basic chess movements, with a search depth of 3! To put this into context, that is less data than the size of the text in this paragraph! 🤯

But back to The Kilobyte’s Gambit. How well did it play? I would argue that for a 1 kb program, it is enormously impressive! It played a tricky and offbeat opening (the Goldsmith Defense), and the engine punished my mistakes, and admittedly, I (arrogantly) played the game in a pretty haphazard manner. I think that the engine would have definitely beat me when I was a kid! The engine is prone to making mistakes and blunders though, so any time I played more solidly would result in me accruing an advantage.

The Chess.com game review shows this well. I regained the advantage each time I made a serious mistake.

Note: the pattern is interesting, though, don’t take any notice of the enumerated “game ratings”!

Anyway, what do you think? Have you tried playing against this tiny chess engine and how did you find it? Let me know in the comments below!

* * *

Learn how to play the best chess opening attacks in the Romantic style with my new book, “Become a Chess Assassin!” available now on your local Amazon store!

Buy on your regional Amazon store! US | UK | DE | FR | ES | IT | NL | PL | SE | JP | CA | AU

Hi!  I'm vitualis, the chess noob, and I run the "Adventures of a Chess Noob" YouTube channel and blog.  I'm learning and having fun with chess! 

I restarted playing chess recently after my interest was rekindled by the release of "The Queen's Gambit" on Netflix.  I mostly play 1 or 2 games a day, and am trying to improve (slowly!).  I document some of my games and learning experiences on my blog and YouTube channel from the perspective of a beginner-intermediate player!


Subscribe to my YouTube channel! https://www.youtube.com/@chessnoob64


NEW BOOK November 2024: Become a Chess Assassin! Learn to play the best chess opening attacks. Don't miss out on your copy! Buy on Amazon for only USD $15.99! US | UK | DE | FR | ES | IT | NL | PL | SE | JP | CA | AU


Also, 50+2 Chess Quick Wins: Tactical ideas for exciting chess for beginner players on Amazon for USD $13.99! US | CA | UK | DE | FR | IT | ES | NL | AU 

 

Also check out my Twitch and YouTube channel where I play and stream my backlog of Japanese role playing games (JRPGs)!