summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-02-23 18:37:17 +0100
committerTor Andersson <tor@ccxvii.net>2025-02-27 17:10:32 +0100
commit4a3b2a010da17959766a4c4c58a04c33c398c422 (patch)
treeafcb8f856d587f4c476ef9c5f4dfa1db2d71fb3b /rules.js
parent2e7093f9e981832aaeeeb992d0d988959ac51d91 (diff)
downloadland-and-freedom-4a3b2a010da17959766a4c4c58a04c33c398c422.tar.gz
xxx
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index ced9de7..4ede666 100644
--- a/rules.js
+++ b/rules.js
@@ -1,9 +1,6 @@
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
-exports.roles = exports.scenarios = void 0;
-exports.action = action;
-exports.view = game_view;
-exports.setup = setup;
+exports.setup = exports.view = exports.action = exports.roles = exports.scenarios = void 0;
const data_1 = require("./data");
const OBSERVER = 'Observer';
const states = {};
@@ -92,6 +89,7 @@ function action(state, player, action, arg) {
throw new Error('Invalid action: ' + action);
return game;
}
+exports.action = action;
const state_node = 'l';
const seq_node = 's';
const function_node = 'f';
@@ -397,6 +395,7 @@ function game_view(state, current) {
}
return view;
}
+exports.view = game_view;
function setup(seed, _scenario, _options) {
game = {
seed: seed,
@@ -491,6 +490,7 @@ function setup(seed, _scenario, _options) {
start_year();
return game;
}
+exports.setup = setup;
function draw_hand_cards(faction_id, count) {
const deck = list_deck(faction_id);
if (game.medallions[faction_id].includes(data_1.INTELLIGENCE_MEDALLION_ID)) {