Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

[Feature] Always prompt the user before promoting a silver #1

Merged
merged 1 commit into from Mar 28, 2015
Merged

[Feature] Always prompt the user before promoting a silver #1

merged 1 commit into from Mar 28, 2015

Conversation

ejmr
Copy link
Contributor

@ejmr ejmr commented Mar 27, 2015

By default the program will automatically promote pieces once they
reach the other side of the board. That is almost always desirable.
However, it can be strategically advantageous to leave a silver
general unpromoted. We can prevent the automatic promotion by
toggling 'Ask Before Promotion' in the Options menu, but that has the
tedious side-effect of requiring us to answer the prompt for every
possible promotion.

This patch implements a convenient compromise between the default
behavior and prompting for promotion: moving a silver general to the
opposite side of the board will always trigger the prompt, even if
'Ask Before Promotion' is disabled. This lets us have automatic
promotion for all of the other pieces while also letting us control
whether or not we want to promote a silver.

Signed-off-by: Eric James Michael Ritz ejmr@plutono.com

By default the program will automatically promote pieces once they
reach the other side of the board.  That is almost always desirable.
However, it can be strategically advantageous to leave a silver
general unpromoted.  We can prevent the automatic promotion by
toggling 'Ask Before Promotion' in the Options menu, but that has the
tedious side-effect of requiring us to answer the prompt for every
possible promotion.

This patch implements a convenient compromise between the default
behavior and prompting for promotion: moving a silver general to the
opposite side of the board will always trigger the prompt, even if
'Ask Before Promotion' is disabled.  This lets us have automatic
promotion for all of the other pieces while also letting us control
whether or not we want to promote a silver.

Signed-off-by: Eric James Michael Ritz <ejmr@plutono.com>
johncheetham pushed a commit that referenced this pull request Mar 28, 2015
[Feature] Always prompt the user before promoting a silver
@johncheetham johncheetham merged commit 268a5dc into johncheetham:master Mar 28, 2015
@johncheetham
Copy link
Owner

Merged Thanks!

@ejmr ejmr deleted the silver-promotion-prompt branch March 28, 2015 19:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants