summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index d0e2797..1abe86b 100644
--- a/rules.js
+++ b/rules.js
@@ -2324,7 +2324,14 @@ function player_hand() {
states.turn_option = {
inactive: "turn option",
prompt() {
- view.prompt = `Turn Option \u2014 committed ${game.commit[0]} real and ${game.commit[1]} dummy supply.`
+ if (game.commit[0] === 0 && game.commit[1] === 0)
+ view.prompt = `Turn Option: committed zero supply.`
+ else if (game.commit[1] === 0)
+ view.prompt = `Turn Option: committed ${game.commit[0]} real supply.`
+ else if (game.commit[0] === 0)
+ view.prompt = `Turn Option: committed ${game.commit[1]} dummy supply.`
+ else
+ view.prompt = `Turn Option: committed ${game.commit[0]} real and ${game.commit[1]} dummy supply.`
let hand = player_hand()
if (game.commit[0] + game.commit[1] < 3) {