Live data from Hacker News

Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB

github.com

31–40 of 78 posts

Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB

#33
This is very cool and having stalemate is nice, however how much space would it take to implement the full ruleset?

As you write: not implemented: castling, en passant, promotion, repetition, 50-move rule - those are all required to call the game being played modern chess.

I could see an argument for skipping repetition and 50-move rule for tiny engines, but you do need castling, en pessant and promotion for pretty much any serious play.

https://en.wikipedia.org/wiki/Video_Chess fit in 4k and supported fuller ruleset in 1980 did it not?

So I would ask what is the smallest fully UCI (https://www.chessprogramming.org/UCI) compliant engine available currently?

This would be a fun goal to beat - make something tiny that supports full ruleset.

PS my first chess computer in early 1980s was this: https://www.ismenio.com/chess_fidelity_cc3.html - it also supported castling, en pessant, not sure about 50 move rule.

Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB

#35
post #31

How many games did you have to throw away because stockfish wanted to castle? Or did you force stockfish to not castle? Castling seems like such a frequent move it is hard to draw any conclusions about the strength of an engine that does not support it.

zero games were thrown away for castling, because i forced stockfish not to castle (and not to play en passant/promotion) by filtering legal moves and only giving those filtered moves via root_moves

so every game stayed in the same no castling variant

and you're right, this rating is for that constrained variant, not full chess.

Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB

#36
If anyone is curious, the most common tool I've seen for ELO estimation among engine developers is cutechess [1], which uses SPRT [2]. Or ordo [3], haven't used this myself though

[1] https://cutechess.com/

[2] https://www.chessprogramming.org/Sequential_Probability_Rati...

[3] https://github.com/michiguel/Ordo

Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB

#38
post #4

How did you handle games where Stockfish would castle or promote?

i forced stockfish to play only non castling, non en passant, non promotion moves by filtering legal moves and passing only those as root_moves also removed castling/EP rights from FEN

I'd call that cheating but the size and capability is impressive nonetheless.

Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB

#39
post #34

If you ever spent much time at a chess club, you've seen why 2kB is a really disturbing number.

I have not. Can you please tell me why?

Not really. You have to see it for yourself.

(Partial answer, 2kB is a very small fraction of what we'd like to think counts as human.)

Post reply on HN