diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-12-06 20:41:29 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-12-06 20:41:29 +0100 |
commit | b0697e2a3bc760990c17b2751458007b030a5f21 (patch) | |
tree | 4b95f7e74c07e3c714c70818344ccde3ef2a75b4 | |
parent | b2ca7df6e0c117b6f5d7fb3c47f25aff2c97eb3b (diff) | |
download | votes-for-women-b0697e2a3bc760990c17b2751458007b030a5f21.tar.gz |
final voting prompts
-rw-r--r-- | rules.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1252,10 +1252,14 @@ function us_states_to_win() { return (game.active === SUF) ? GREEN_CHECK_VICTORY - count_green_checks() : RED_X_VICTORY - count_red_xs() } +function us_states_to_lose() { + return (game.active === OPP) ? GREEN_CHECK_VICTORY - count_green_checks() : RED_X_VICTORY - count_red_xs() +} + states.final_voting_select_state = { inactive: "do Final Voting.", prompt() { - view.prompt = `Final Voting: Select a State. You need ${pluralize(us_states_to_win(), 'more State')} for victory.` + view.prompt = `Final Voting: Select a State. ${pluralize(us_states_to_win(), 'more State')} to win, ${us_states_to_lose()} to lose.` let us_states = ANYWHERE.slice() set_filter(us_states, s => !(is_green_check(s) || is_red_x(s))) @@ -1344,7 +1348,7 @@ function update_final_voting_result() { states.final_voting_roll = { inactive: "do Final Voting.", prompt() { - view.prompt = `Final Voting for ${us_state_name(game.selected_us_state)}: ` + view.prompt = `${us_state_name(game.selected_us_state)}: ` if (!game.voting_winner) { if (game.support_drm) |