celeroncoder / celeroncoder/Chess

Add `pawn promotion`.

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Implement **Pawn Promotion**.

> **What is Pawn Promotion?**
> Promotion in chess is a rule that requires a pawn that reaches the eighth rank to be replaced by the player's choice of a bishop, knight, rook, or queen of the same color. The piece chosen cannot be another king nor another pawn. The new piece replaces the pawn on its starting square on the same move. The choice of the new piece is not limited to pieces previously captured, thus promotion can result in a player owning, for example, two or more queens despite starting the game with one. Know more from the wikipedia entry [here](https://en.wikipedia.org/wiki/Promotion_(chess)).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.