logoalt Hacker News

dargscisyhptoday at 8:24 PM0 repliesview on HN

That is a standard rule in chess. If your opponent has no legal moves (i.e. no way to move without moving his king into check) and is not currently in check, it is considered stalemate, which is a draw.