From 9414fe91218a00fe9e44b48fdf40e51de5cb4479 Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Mon, 25 Nov 2024 21:42:51 +0100 Subject: setup fronts and tracks --- rules.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rules.ts') diff --git a/rules.ts b/rules.ts index a2a71ca..389900d 100644 --- a/rules.ts +++ b/rules.ts @@ -67,9 +67,10 @@ export interface View { victory?: string; location?: string; selected?: string; - + fronts: Game['fronts']; current_events: CardId[]; hand: CardId[]; + tracks: number[]; } // interface State { @@ -160,7 +161,9 @@ function game_view(state: Game, player: Player) { location: game.location, selected: game.selected, current_events: game.current_events, + fronts: game.fronts, hand: game.hands[faction_id], + tracks: game.tracks }; if (player !== game.active) { -- cgit v1.2.3