Build in pawn promotion
cognalog opened this issue · 1 comments
cognalog commented
Right now there's no concept of pawn promotion in the system--the rules just aren't built in.
See official rules
cognalog commented
TODOs:
- create a new case class extending
Move
or add anOption[Piece]
param toNormalMove
- update
Pawn.getLegalMoves
to identify promotion moves - update
Board.move
to manifest promotion