Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build in pawn promotion #34

Closed
cognalog opened this issue Jul 17, 2021 · 1 comment · Fixed by #36
Closed

Build in pawn promotion #34

cognalog opened this issue Jul 17, 2021 · 1 comment · Fixed by #36
Labels
enhancement New feature or request

Comments

@cognalog
Copy link
Owner

Right now there's no concept of pawn promotion in the system--the rules just aren't built in.

See official rules

@cognalog cognalog added the enhancement New feature or request label Jul 17, 2021
@cognalog
Copy link
Owner Author

TODOs:

  • create a new case class extending Move or add an Option[Piece] param to NormalMove
  • update Pawn.getLegalMoves to identify promotion moves
  • update Board.move to manifest promotion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant