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

Promoting Pawns dosen't work #14

Open
JakeI opened this issue Nov 21, 2023 · 3 comments
Open

Promoting Pawns dosen't work #14

JakeI opened this issue Nov 21, 2023 · 3 comments

Comments

@JakeI
Copy link

JakeI commented Nov 21, 2023

When reaching the final rank with a pawn it should be possible to promote. So there should be some way of selecting a piece and than having the pawn turn into that piece.

As of now, pawn moves to the final rank just are not possible (the interface won't offer those)

Side note: this is a really cool project.

@maaslalani
Copy link
Owner

Thanks so much for this issue, @JakeI.

To be entirely honest, I didn't think anyone would use this enough to even reach promoting pawns haha, I think a reasonable solution would be to either:

  1. Auto-promote to queen (easy)
  2. After a pawn moves to the final rank, show a separate screen to pick the promotion piece.

@maaslalani
Copy link
Owner

@JakeI I added functionality to allow auto promotion to queens when the pawns reach the final rank. It should be reasonable to add selection of which piece to promote to by allowing the user to press n, b, r, q to switch the promotion.

@JakeI
Copy link
Author

JakeI commented Nov 22, 2023

Wow, that was fast! That's very useful!

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

No branches or pull requests

2 participants