ecattez / shahmat

A Chess implementation with the Domain Driven Design
https://ecattez.github.io/shahmat/
GNU General Public License v3.0
3 stars 0 forks source link

Feature: Stalemate #26

Open ecattez opened 4 years ago

ecattez commented 4 years ago

Feature: Stalemate

Stalemate is a situation in the game of chess where the player whose turn it is to move is not in check but has no legal move. The rules of chess provide that when stalemate occurs, the game ends as a draw.

Scenario: a player is stalemate

WHEN a king is not in check
AND the king's player cannot make any legal move
THEN the player is stalemate
AND the game ends as a draw