Pawn promotion #9
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kske/chess#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The following should happen when a pawn is about to be promoted:
Ask the player about the piece to which the pawn should be promoted
Generate all four possibilities
Adjust LAN to include this information as specified in the UCI protocol documentation
When a
Move
object has the typePAWN_PROMOTION
, it has to store the piece type to which the pawn has been promoted.This could be realized by creating a subclass of
Move
. This would require adjustments in the move generation, validation and inNaturalPlayer
, where all moves are created with the typeUNKNOWN
, which should be removed as well.