Skip to content

Forced insufficient material#821

Open
johndoknjas wants to merge 6 commits into
lichess-org:masterfrom
johndoknjas:forced-insufficient-material
Open

Forced insufficient material#821
johndoknjas wants to merge 6 commits into
lichess-org:masterfrom
johndoknjas:forced-insufficient-material

Conversation

@johndoknjas

@johndoknjas johndoknjas commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

From the FIDE handbook:

The game is drawn when a position is reached from which a checkmate cannot occur by
any possible series of legal moves. This immediately ends the game, provided that the
move producing this position was legal.

If all of a player's legal moves reach a position where the opponent cannot win, then in the current position the opponent should be considered to have insufficient mating material. E.g., for this example, this PR would make the game be declared drawn if Black ran out of time.

Note that the changes made in the variant subfolder (commit f689821) are not strictly needed, but it's less confusing to now not have turn-agnostic logic anywhere.

…l` in terms of `opponentHasInsufficientMaterial`, and then update derived variant classes to implement their own `playerHasInsufficientMaterial`.
…(the 'player' in new positions) having insufficient mating material, then the opponent has insufficient mating material now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant