From 4e2ab55d345fd5e5c5d2d5bc56948611b15564d5 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 27 Dec 2024 12:40:19 +0100 Subject: introduce game.State interface abstraction This allows to not use the internal game state directly from client code. --- go/game/map.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'go/game/map.go') diff --git a/go/game/map.go b/go/game/map.go index 378e9f2c..e0c99911 100644 --- a/go/game/map.go +++ b/go/game/map.go @@ -29,7 +29,7 @@ type MapYml struct { StartDeckList string `yaml:"start_deck_list"` } -func DummyWinCondition(*State) []*Player { +func DummyWinCondition(*LocalState) []*Player { return []*Player{} } @@ -38,7 +38,7 @@ type Map struct { symbols map[string]string ResourceGain int StartDeckList string - WinCondition func(*State) []*Player + WinCondition func(*LocalState) []*Player Stores map[Position]*Store } -- cgit v1.2.3