diff options
-rw-r--r-- | create.html | 10 | ||||
-rw-r--r-- | rules.js | 7 |
2 files changed, 9 insertions, 8 deletions
diff --git a/create.html b/create.html index 2c12a31..599bf88 100644 --- a/create.html +++ b/create.html @@ -4,12 +4,14 @@ <dd> Historical deployment. <dt> -Tournament: -<dd> -Historical deployment, but Julius Caesar goes first on the first turn regardless of the cards played. -<dt> <a href="/julius-caesar/info/rules.html#setup">Free Deployment</a>: <dd> Players may swap any blocks on the map as long as the original number of deployed blocks in each city is maintained. </dl> + +Optional rules: +<p> +<label><input type="checkbox" name="tournament" value="true"> +Tournament — Julius Caesar goes first on the first turn regardless of the cards played. +</label> @@ -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, |