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

Underpromotion not supported #13

Open
Chris-Burton opened this issue Apr 13, 2013 · 3 comments
Open

Underpromotion not supported #13

Chris-Burton opened this issue Apr 13, 2013 · 3 comments

Comments

@Chris-Burton
Copy link

There is no support for "under-promotion". When a pawn reaches the far side of the board, it is most often turned into a queen, but the pawn can also become a knight, bishop, or rook.

In this example it's white to move and white would like to take the black rook with it's pawn and become a knight so it puts the black king immediately in check.

5r2/6Pk/7p/2pB4/8/q7/8/6RK w - -

If the white pawn takes the rook and becomes a queen, the black king is not in check, and black is free to move play Qh3 and checkmate white!

I am new to both Garbochess and GitHub, so I hope this is done correctly.

BTW, I am very impressed with Garbochess! This is the best Java Script version of chess I've ever seen!

If I have suggestions for improvement that are not bugs, how should I submit them?

@casaschi
Copy link

The garbochess.js engine supports underpromotion, see for instance this implementation with a different user interface:
http://pgn4web.casaschi.net/engine.html?fs=5r2/6Pk/7p/2pB4/8/q7/8/6RK%20w%20-%20-

I can't comment on the original garbochess web interface though.

@glinscott
Copy link
Owner

Yes, the original interface only auto-promotes to queen currently - thanks for filing the issue :).

@Chris-Burton
Copy link
Author

Casaschi,

Thank you for such a quick response! I understand now that the ability to
use the Garbochess under-promotion feature is a function of the UI and not
a limitation of Garbochess.

It would therefore seem that your UI found at

demo page http://forwardcoding.com/projects/ajaxchess/chess.html

Is *not *meant to show the entire Garbochess feature set.

For example, some features I want that I did not see on the above demo page
include: (1) I want to control under-promotion,* (2)* I want letters and
numbers to the default chess board, (3) *I want to announce checkmate and
stalemate, *(4)
I want to load a FEN where the user plays black and moves
first, and (5) I want to better indicate what piece just moved. Are you
saying there is no default UI that contains these features?

Thank you again. I hope my team can assist you in some way to help make
Garbochess more robust.

Sincerely,

Chris Burton

On Sat, Apr 13, 2013 at 12:37 PM, casaschi notifications@github.com wrote:

The garbochess.js engine supports underpromotion, see for instance this
implementation with a different user interface:

http://pgn4web.casaschi.net/engine.html?fs=5r2/6Pk/7p/2pB4/8/q7/8/6RK%20w%20-%20-

I can't comment on the original garbochess web interface though.


Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-16339331
.

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

3 participants