[1] https://github.com/thomasmueller/bau-lang/blob/main/src/test...
Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB
51–60 of 78 posts
Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB
#52Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB
#53Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB
#54Earlier quoted context omitted.
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.)
2kB is a very small fraction of what we'd like to think counts as human
This doesn't seem to mean anything. Why would 2KB have any relation to "counting as human". It's the data of about 10 comments.
Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB
#55Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB
#56Earlier quoted context omitted.
What's the snallest possible program that accepts a chess board state and prints any legal move? True randomness may only have a couple hundred ELO, but then, that's pretty big for golf
The program that resigns every time unfortunately does a lot worse than random. But it depends on the population it's pitted against - it should at least pick up a few points against copies of itself.
I'd claim it would work on human opponents, but I think it would get banned from chess tournaments.
Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB
#57Earlier quoted context omitted.
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.
Wouldn't stockfish's position evaluation be incorrect in that case? (If it evaluated the position based on a formula that assumed normal rules)
Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB
#58Good job! I love how you obfuscated your code, really in a spirit of FOSS!
Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB
#59Earlier quoted context omitted.
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.
Wouldn't stockfish's position evaluation be incorrect in that case? (If it evaluated the position based on a formula that assumed normal rules)
Re: Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB
#60Cool! I just recently implemented a chess engine in ~400 (readable) lines, with all rules, first in Java and then ported to my own programming language "Bau" [1]. This is including a terminal UI. I'll measure the ELO, but I was never able to beat it :-) The castling moves are specially tricky to implement I think. I enjoyed the challenge as well. [1] https://github.com/thomasmueller/bau-lang/blob/main/src/test...