diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-02-23 18:37:17 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-27 17:10:32 +0100 |
commit | 4a3b2a010da17959766a4c4c58a04c33c398c422 (patch) | |
tree | afcb8f856d587f4c476ef9c5f4dfa1db2d71fb3b /rules.js | |
parent | 2e7093f9e981832aaeeeb992d0d988959ac51d91 (diff) | |
download | land-and-freedom-4a3b2a010da17959766a4c4c58a04c33c398c422.tar.gz |
xxx
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)) { |