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/stack.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/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{}} } |
