summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-02-28 00:16:57 +0100
committerTor Andersson <tor@ccxvii.net>2025-02-28 00:16:57 +0100
commitdfac77d2135ef7084852860d995113cc8709a233 (patch)
treedc9d21a1b71387f25e34e9f01981d197864f4442 /rules.ts
parent27872e4dc0bd20451d502be58cbed91aca7339a6 (diff)
downloadland-and-freedom-dfac77d2135ef7084852860d995113cc8709a233.tar.gz
client wip
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts18
1 files changed, 10 insertions, 8 deletions
diff --git a/rules.ts b/rules.ts
index 98b10b9..2775617 100644
--- a/rules.ts
+++ b/rules.ts
@@ -513,31 +513,33 @@ function game_view(state: Game, current: Player | 'Observer') {
view = {
active: game.active,
- engine: game.engine, // TODO: remove
+ // engine: game.engine, // TODO: remove
log: game.log,
prompt: null,
- state: game.state,
- bag_of_glory: game.bag_of_glory,
+ // state: game.state,
+ // bag_of_glory: game.bag_of_glory,
bag_of_glory_count: game.bag_of_glory.length,
bonuses: game.bonuses,
- current,
- current_player_faction: faction,
+ // current,
+ // current_player_faction: faction,
current_events: game.current_events,
first_player: game.first_player,
fronts: game.fronts,
glory: game.glory,
hand: faction === null ? [] : game.hands[faction],
- discard: faction === null ? [] : game.discard[faction],
- trash: faction === null ? [] : game.trash[faction],
- deck: faction === null ? [] : list_deck(faction),
+ // discard: faction === null ? [] : game.discard[faction],
+ // trash: faction === null ? [] : game.trash[faction],
+ // deck: faction === null ? [] : list_deck(faction),
hero_points: game.hero_points,
initiative: game.initiative,
medallions: game.medallions,
played_card: game.played_card,
+ /*
player_order:
current === OBSERVER
? game.player_order
: get_player_order_in_game(faction).map((id) => faction_player_map[id]),
+ */
selectable_cards: game.selectable_cards,
selected_cards: current === OBSERVER ? [] : game.selected_cards[faction],
tableaus: game.tableaus,