Loethor / Loethor/ruce

Implement en passant

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

Description

If you have a white/black pawn in the 5/4 rank and the opponent moves a pawn to its side (by executing a two-square movement), you are allowed to eat that pawn, moving your to the 6/3 rank, diagonally.
It can only be done the turn after the opponent moved the pawn from its original squared.

For more [info](https://support.chess.com/article/683-what-is-en-passant).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the pawn-movement and turn/state-handling code; the issue names no files or tests. Read the linked en passant rules, then trace how a pawn's previous move is represented. Done means a pawn can capture an opponent's just-moved two-square pawn diagonally on the immediately following turn, and cannot do so later.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.