News for hackers. Stuff that matters.
Re:The Kilobyte’s Gambit by forty on Monday March 08, 2021 @07:42AM (#26385080)
Speaking of rules : I noticed the AI was able to castle even though one of the square in the path was attacked by one of my piece. I'm not a chess expert at all (this AI seems much better than me ^^) but I thought it shouldn't be possible.
Re:The Kilobyte’s Gambit by mattround on Monday March 08, 2021 @08:05AM (#26385257)
I wouldn't be surprised if it doesn't cover that, I can imagine it'd be tricky to include without adding tens of bytes (10-20 bytes could be freed up by using slightly hackier function calls to/from the display, so perhaps Óscar will add more features/intelligence one day)
Re:The Kilobyte’s Gambit by arnsholt on Monday March 08, 2021 @08:06AM (#26385269)
Was it a long castle? In that case, the squares the rook moves through don't block the move, it's only the squares the king moves through that block the castling move, so f8 and g8 for short castle and d8 and c8 for long castle.
Re:The Kilobyte’s Gambit by forty on Monday March 08, 2021 @10:36AM (#26386801)
Ah! It might have been that situation indeed, but I don't remember which square was attacked exactly. Good to know :)