Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: