Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I am surprised that stalemate detection would be challenging. Iterate over the current player's pieces and count the number of available moves. If they are fewer than 1 -> stalemate. What could I be missing? I assume that you have something that detects valid moves as the board tiles are properly highlighted when a piece is selected.

In terms of priorities , probably not the most urgent issue.

(+1)

Oh yeah of course just finding out situations where you have no moves at all would be a piece of cake. But I was thinking more of detecting cases where you couldn't win no matter what even if you had loads of different moves to make.