aboutsummaryrefslogtreecommitdiff
path: root/go/server
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-12-27 12:40:19 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:58 +0100
commit4e2ab55d345fd5e5c5d2d5bc56948611b15564d5 (patch)
treec6998ac54687c442ad0baa541edd0fbf917b1308 /go/server
parent5aa8e7ddbc41aed55e7918e6afaec0b5c07fa510 (diff)
downloadmuhqs-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/server')
-rw-r--r--go/server/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/server/main.go b/go/server/main.go
index af051b53..bd4d139a 100644
--- a/go/server/main.go
+++ b/go/server/main.go
@@ -6,7 +6,7 @@ import (
"muhq.space/muhqs-game/go/game"
)
-var games = []game.State{}
+var games = []game.LocalState{}
func main() {
fmt.Println("Started muhq's game server", games)