Pawn promotion #9

Closed
opened 2019-10-29 06:27:54 +01:00 by CyB3RC0nN0R · 1 comment
CyB3RC0nN0R commented 2019-10-29 06:27:54 +01:00 (Migrated from github.com)

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

The following should happen when a pawn is about to be promoted: - [x] Ask the player about the piece to which the pawn should be promoted - [x] Generate all four possibilities - [x] Adjust LAN to include this information as specified in the UCI protocol documentation
CyB3RC0nN0R commented 2019-10-30 17:21:52 +01:00 (Migrated from github.com)

When a Move object has the type PAWN_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 in NaturalPlayer, where all moves are created with the type UNKNOWN, which should be removed as well.

When a `Move` object has the type `PAWN_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 in `NaturalPlayer`, where all moves are created with the type `UNKNOWN`, which should be removed as well.
This repo is archived. You cannot comment on issues.
No description provided.