summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js80
1 files changed, 40 insertions, 40 deletions
diff --git a/rules.js b/rules.js
index 3bd8f1e..3f20f9b 100644
--- a/rules.js
+++ b/rules.js
@@ -16,16 +16,16 @@ Special card rules implemented:
suffer_1_less
start_with_no_cubes
take_from
+ rout_with
+ remove_with
wild
TODO:
- rout_with
- remove_with
attack_reserve
- no_morale
+ attack_choose_target
+ take_from
TODO: extra input steps
- attack_choice
may_take_from
@@ -526,18 +526,18 @@ const place_dice_once = {
"(5)": true,
"(6)": true,
"(1)/(2)": true,
- "(1)-(3)": true,
- "(1)-(4)": true,
- "(1)-(5)": true,
+ "(1-3)": true,
+ "(1-4)": true,
+ "(1-5)": true,
"(2)/(3)": true,
- "(2)-(4)": true,
- "(2)-(5)": true,
- "(2)-(6)": true,
+ "(2-4)": true,
+ "(2-5)": true,
+ "(2-6)": true,
"(3)/(4)": true,
- "(3)-(5)": true,
- "(3)-(6)": true,
+ "(3-5)": true,
+ "(3-6)": true,
"(4)/(5)": true,
- "(4)-(6)": true,
+ "(4-6)": true,
"(5)/(6)": true,
}
@@ -575,18 +575,18 @@ const place_dice_check = {
"4-6": (c) => check_range(c, 4, 6),
"5/6": (c) => check_range(c, 5, 6),
"(1)/(2)": (c) => check_range(c, 1, 2),
- "(1)-(3)": (c) => check_range(c, 1, 3),
- "(1)-(4)": (c) => check_range(c, 1, 4),
- "(1)-(5)": (c) => check_range(c, 1, 5),
+ "(1-3)": (c) => check_range(c, 1, 3),
+ "(1-4)": (c) => check_range(c, 1, 4),
+ "(1-5)": (c) => check_range(c, 1, 5),
"(2)/(3)": (c) => check_range(c, 2, 2),
- "(2)-(4)": (c) => check_range(c, 2, 4),
- "(2)-(5)": (c) => check_range(c, 2, 5),
- "(2)-(6)": (c) => check_range(c, 2, 6),
+ "(2-4)": (c) => check_range(c, 2, 4),
+ "(2-5)": (c) => check_range(c, 2, 5),
+ "(2-6)": (c) => check_range(c, 2, 6),
"(3)/(4)": (c) => check_range(c, 3, 4),
- "(3)-(5)": (c) => check_range(c, 3, 5),
- "(3)-(6)": (c) => check_range(c, 3, 6),
+ "(3-5)": (c) => check_range(c, 3, 5),
+ "(3-6)": (c) => check_range(c, 3, 6),
"(4)/(5)": (c) => check_range(c, 4, 5),
- "(4)-(6)": (c) => check_range(c, 4, 6),
+ "(4-6)": (c) => check_range(c, 4, 6),
"(5)/(6)": (c) => check_range(c, 5, 6),
}
@@ -624,18 +624,18 @@ const place_dice_gen = {
"4-6": (c) => gen_range(c, 4, 6),
"5/6": (c) => gen_range(c, 5, 6),
"(1)/(2)": (c) => gen_range(c, 1, 2),
- "(1)-(3)": (c) => gen_range(c, 1, 3),
- "(1)-(4)": (c) => gen_range(c, 1, 4),
- "(1)-(5)": (c) => gen_range(c, 1, 5),
+ "(1-3)": (c) => gen_range(c, 1, 3),
+ "(1-4)": (c) => gen_range(c, 1, 4),
+ "(1-5)": (c) => gen_range(c, 1, 5),
"(2)/(3)": (c) => gen_range(c, 2, 2),
- "(2)-(4)": (c) => gen_range(c, 2, 4),
- "(2)-(5)": (c) => gen_range(c, 2, 5),
- "(2)-(6)": (c) => gen_range(c, 2, 6),
+ "(2-4)": (c) => gen_range(c, 2, 4),
+ "(2-5)": (c) => gen_range(c, 2, 5),
+ "(2-6)": (c) => gen_range(c, 2, 6),
"(3)/(4)": (c) => gen_range(c, 3, 4),
- "(3)-(5)": (c) => gen_range(c, 3, 5),
- "(3)-(6)": (c) => gen_range(c, 3, 6),
+ "(3-5)": (c) => gen_range(c, 3, 5),
+ "(3-6)": (c) => gen_range(c, 3, 6),
"(4)/(5)": (c) => gen_range(c, 4, 5),
- "(4)-(6)": (c) => gen_range(c, 4, 6),
+ "(4-6)": (c) => gen_range(c, 4, 6),
"(5)/(6)": (c) => gen_range(c, 5, 6),
}
@@ -673,18 +673,18 @@ const place_dice_take = {
"4-6": (c, d) => take_single(c, d),
"5/6": (c, d) => take_single(c, d),
"(1)/(2)": (c, d) => take_single(c, d),
- "(1)-(3)": (c, d) => take_single(c, d),
- "(1)-(4)": (c, d) => take_single(c, d),
- "(1)-(5)": (c, d) => take_single(c, d),
+ "(1-3)": (c, d) => take_single(c, d),
+ "(1-4)": (c, d) => take_single(c, d),
+ "(1-5)": (c, d) => take_single(c, d),
"(2)/(3)": (c, d) => take_single(c, d),
- "(2)-(4)": (c, d) => take_single(c, d),
- "(2)-(5)": (c, d) => take_single(c, d),
- "(2)-(6)": (c, d) => take_single(c, d),
+ "(2-4)": (c, d) => take_single(c, d),
+ "(2-5)": (c, d) => take_single(c, d),
+ "(2-6)": (c, d) => take_single(c, d),
"(3)/(4)": (c, d) => take_single(c, d),
- "(3)-(5)": (c, d) => take_single(c, d),
- "(3)-(6)": (c, d) => take_single(c, d),
+ "(3-5)": (c, d) => take_single(c, d),
+ "(3-6)": (c, d) => take_single(c, d),
"(4)/(5)": (c, d) => take_single(c, d),
- "(4)-(6)": (c, d) => take_single(c, d),
+ "(4-6)": (c, d) => take_single(c, d),
"(5)/(6)": (c, d) => take_single(c, d),
}