diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-12-27 12:40:19 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:58 +0100 |
| commit | 4e2ab55d345fd5e5c5d2d5bc56948611b15564d5 (patch) | |
| tree | c6998ac54687c442ad0baa541edd0fbf917b1308 /go/game/map.go | |
| parent | 5aa8e7ddbc41aed55e7918e6afaec0b5c07fa510 (diff) | |
| download | muhqs-game-4e2ab55d345fd5e5c5d2d5bc56948611b15564d5.tar.gz muhqs-game-4e2ab55d345fd5e5c5d2d5bc56948611b15564d5.zip | |
introduce game.State interface abstraction
This allows to not use the internal game state directly from client
code.
Diffstat (limited to 'go/game/map.go')
| -rw-r--r-- | go/game/map.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
