Added pawn promotion #11

Merged
CyB3RC0nN0R merged 5 commits from f/pawn_promotion into master 2019-11-05 05:44:11 +01:00

5 Commits

Author SHA1 Message Date
Kai S. K. Engelbart 86a1c70eda Added pawn promotion selection
* Letting a NaturalPlayer select the promotion piece with a combo box
* Optimized reflection use in PawnPromotion
* Changed toString method of Move to use LAN

Closes #9
2019-11-05 05:41:26 +01:00
Kai S. K. Engelbart 5b99370884 Added pawn promotion support to LAN 2019-11-04 18:11:23 +01:00
Kai S. K. Engelbart e955f05016 Removed Type enumeration from Piece class 2019-11-04 05:51:11 +01:00
Kai S. K. Engelbart 71f48895df Implemented proper pawn promotion
* Moved move execution and reversion to the Move class
* Removed Move.Type enumeration
* Added Move subclasses Castling, EnPassant and PawnPromotion
* Generating all four possible pawn promotions in the Pawn class
* Temporarily removed special move support from NaturalPlayer
2019-11-03 15:46:08 +01:00
Kai S. K. Engelbart 0edb83087b Created getters for all fields in Move 2019-10-31 19:09:43 +01:00