summaryrefslogtreecommitdiff
path: root/engine/game
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-09-14 19:48:36 +0200
committerewy <ewy0@protonmail.com>2026-09-14 19:48:36 +0200
commit899ef7448222f0d087c194b3379b702f8dd2ff8c (patch)
tree8c2b508bb4d01236c7f582e4eee91fd178d09670 /engine/game
parentc69e6c0770359e2febafcf487eb21c4aa608c3e9 (diff)
add server and websocket comms
Diffstat (limited to 'engine/game')
-rw-r--r--engine/game/game.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/engine/game/game.go b/engine/game/game.go
deleted file mode 100644
index 7f3fa76..0000000
--- a/engine/game/game.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package game
-
-import (
- "sakura/engine/player"
- "sakura/engine/pool"
-)
-
-type Game struct {
- Shadow *pool.Pool
- Distance *pool.Pool
- Yin *player.Player
- Yang *player.Player
-
- Must []player.PlayerAction
- May []player.PlayerAction
-}
-
-func (g *Game) propagate() {
- g.Distance.OverflowsTo = g.Shadow
-}
-
-func New() *Game {
- g := &Game{
- Shadow: pool.New(0, pool.Infinite),
- Distance: pool.New(0, 10),
- Must: nil,
- May: nil,
- }
- g.Yin = player.New(g)
- g.Yang = player.New(g)
- g.propagate()
- return g
-}