send game state at start of match
This commit is contained in:
parent
ac214c0517
commit
8bd7532160
3
game.go
3
game.go
@ -64,8 +64,9 @@ func gameActor(ctx context.Context, g *game.Match, dealer, chall person, join <-
|
|||||||
actions := make(chan action, 2)
|
actions := make(chan action, 2)
|
||||||
go playerActor(ctx, dealer, actions)
|
go playerActor(ctx, dealer, actions)
|
||||||
go playerActor(ctx, chall, actions)
|
go playerActor(ctx, chall, actions)
|
||||||
// TODO(zeph): send round start info
|
|
||||||
slog.InfoContext(ctx, "start game", "dealer", dealer.id, "challenger", chall.id)
|
slog.InfoContext(ctx, "start game", "dealer", dealer.id, "challenger", chall.id)
|
||||||
|
broadcast(ctx, g, dealer, chall, obs)
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
Loading…
Reference in New Issue
Block a user