Loethor / Loethor/ruce

Implement stalemate

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
game rules
Dominant language
Rust
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

If the king is not in check and no moves can be execute by the player (not only king moves, any piece moves) the game is finished with a draw. This situation is [stalemate](https://support.chess.com/article/682-what-is-stalemate).

The easiest way to test this is with a king in a corner and a opposite queen near him, in knight movement distance. That king is stalemated.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests, so start by tracing how the engine determines whether a king is in check, generates legal moves for all pieces, and ends the game. Done means a player with no legal move while not in check is declared drawn, including the described corner-king and nearby-queen position.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.