diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-12-27 12:40:19 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:12 +0200 |
| commit | 5fa8f32e9795244188e6088c6f3ac90b03913237 (patch) | |
| tree | 9d1e0af1bf4db1ca7d5a4aeaf046024b6a7bf690 /go/game/stack.go | |
| parent | 0594a25d9960c6c574ab24f8ec4d9137ceaa6c8e (diff) | |
| download | muhqs-game-5fa8f32e9795244188e6088c6f3ac90b03913237.tar.gz muhqs-game-5fa8f32e9795244188e6088c6f3ac90b03913237.zip | |
introduce game.State interface abstraction
This allows to not use the internal game state directly from client
code.
Diffstat (limited to 'go/game/stack.go')
| -rw-r--r-- | go/game/stack.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/game/stack.go b/go/game/stack.go index 8087aef7..a4ba6a49 100644 --- a/go/game/stack.go +++ b/go/game/stack.go @@ -5,11 +5,11 @@ import ( ) type Stack struct { - gameState *State + gameState *LocalState Actions []Action } -func NewStack(s *State) *Stack { +func NewStack(s *LocalState) *Stack { return &Stack{s, []Action{}} } |
