From 48bd11062f644484cc3addeca0a10e6746653067 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 1 May 2021 12:25:19 +0200 Subject: caesar: Tournament option as scenario choice. --- rules.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rules.js b/rules.js index ad73689..cd8c8ce 100644 --- a/rules.js +++ b/rules.js @@ -2,6 +2,7 @@ exports.scenarios = [ "Historical", + "Tournament", // TODO: Free Deployment // TODO: Avalon Digital scenarios? ]; @@ -913,7 +914,7 @@ function reveal_cards() { } // Tournament rule: Caesar always goes first on the first turn of the game. - if (game.year == 705 && game.turn == 1) { + if (game.year == 705 && game.turn == 1 && game.tournament) { if (game.p1 != CAESAR) { log("Tournament rule:\nCaesar is the first player on the very first turn of the game."); game.p1 = CAESAR; @@ -2233,6 +2234,7 @@ exports.setup = function (scenario, players) { if (players.length != 2) throw new Error("Invalid player count: " + players.length); game = { + tournament: (scenario == "Tournament"), state: null, show_cards: false, year: 705, -- cgit v1.2.3