From 4a3b2a010da17959766a4c4c58a04c33c398c422 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 23 Feb 2025 18:37:17 +0100 Subject: xxx --- rules.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rules.js') 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)) { -- cgit v1.2.3