Live data from Hacker News

The Kilobyte’s Gambit

vole.wtf

21–30 of 158 posts

Re: The Kilobyte’s Gambit

#23
post #9

Wow it took me 40 or so attempts to beat it. I’m a chess novice but you’d think a human novice should be able to beat a small chunk of JavaScript. This code must be pretty compact even if expanded to readable form? Is there a repo anywhere with this type of chess engine explained and expanded to human readable commented code?

https://nanochess.org/

https://www.lulu.com/shop/oscar-toledo-gutierrez/toledo-nano...

Re: The Kilobyte’s Gambit

#24
post #9

Wow it took me 40 or so attempts to beat it. I’m a chess novice but you’d think a human novice should be able to beat a small chunk of JavaScript. This code must be pretty compact even if expanded to readable form? Is there a repo anywhere with this type of chess engine explained and expanded to human readable commented code?

The 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 .

Re: The Kilobyte’s Gambit

#26

If the engine is well separated from the UI it would be neat to have a simple version using the Unicode chess set. Regardless, this is so cool.

Yes, I'm not a fan of the CGA graphics at all. I blundered in my first game because I misinterpreted the piece graphics.

Re: The Kilobyte’s Gambit

#28
Nice, it's impressive that it can make some coherent move sequences in such short code. I beat it pretty quickly on the first try (it doesn't stand up well to tactics) but the degree of game sense it does have is impressive.

Re: The Kilobyte’s Gambit

#29

If the engine is well separated from the UI it would be neat to have a simple version using the Unicode chess set. Regardless, this is so cool.

I 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.

Post reply on HN