summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 342349c..93b1611 100644
--- a/rules.js
+++ b/rules.js
@@ -2,7 +2,6 @@
exports.scenarios = [
"Historical",
- "Tournament",
"Free Deployment",
// TODO: Avalon Digital scenarios?
];
@@ -2376,14 +2375,14 @@ states.game_over = {
},
}
-exports.ready = function (scenario, players) {
+exports.ready = function (scenario, options, players) {
return players.length === 2;
}
-exports.setup = function (seed, scenario) {
+exports.setup = function (seed, scenario, options) {
game = {
seed: seed,
- tournament: (scenario === "Tournament"),
+ tournament: options.tournament ? 1 : 0,
c_hand: [],
p_hand: [],
c_card: 0,