why does the shell list never show
This commit is contained in:
parent
e2bdf3e23b
commit
0b89773f57
@ -11,6 +11,7 @@ package game
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
"log/slog"
|
||||||
|
|
||||||
"git.sunturtle.xyz/studio/shotgun/player"
|
"git.sunturtle.xyz/studio/shotgun/player"
|
||||||
"git.sunturtle.xyz/studio/shotgun/serve"
|
"git.sunturtle.xyz/studio/shotgun/serve"
|
||||||
@ -239,6 +240,7 @@ func (g *Match) DTO(id player.ID) serve.Game {
|
|||||||
live = len(g.shells) / 2
|
live = len(g.shells) / 2
|
||||||
blank = len(g.shells) - live
|
blank = len(g.shells) - live
|
||||||
}
|
}
|
||||||
|
slog.Info("dto", "action", g.action, "live", live, "blank", blank)
|
||||||
w := serve.NoWinner
|
w := serve.NoWinner
|
||||||
switch g.MatchWinner() {
|
switch g.MatchWinner() {
|
||||||
case &g.players[0]:
|
case &g.players[0]:
|
||||||
|
Loading…
Reference in New Issue
Block a user