News for hackers. Stuff that matters.
Re:1D Chess by neverkn0wsb357 on Saturday April 11, 2026 @03:00PM (#47733103)
This might have a bug. I have the following configuration.

K - King H - Knight R - Rook E - Enemy King X - Empty

K X X X R K E X

But it indicates it’s a draw by stalemate.

There is only 1 legal move for black here. Which is to move back to X. If it takes my Knight rook gets it.

He moves back, I move my Knight out of the way. Checkmate.

Edit: oh wait nvm there’s no legal move for black.

Re:1D Chess by MegaSec on Saturday April 11, 2026 @03:33PM (#47733330)
I don’t think it is a bug, the enemy king can’t move back to X because the knight is attacking that space. Traditionally you can’t move into check in chess.