rbaltrusch / chess_ng

Full chess engine including chess AI
MIT License
2 stars 2 forks source link

Promotion to a piece other than a queen #17

Open rbaltrusch opened 2 years ago

rbaltrusch commented 2 years ago

Currently, pawn can only promote to queens. It should also be possible to promote to all other major pieces (knight, bishop, rook). It should also be possible to determine the most optimal choice in a minimax algorithm. This likely requires an extension of the existing Move class, as well as removing all hard-coded pawn promotion to queen code.