From 5fa8f32e9795244188e6088c6f3ac90b03913237 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/stack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'go/game/stack.go') 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{}} } -- cgit v1.2.3