send game state at start of match

This commit is contained in:
Branden J Brown 2024-02-02 19:13:30 -06:00
parent ac214c0517
commit 8bd7532160
1 changed files with 2 additions and 1 deletions

View File

@ -64,8 +64,9 @@ func gameActor(ctx context.Context, g *game.Match, dealer, chall person, join <-
actions := make(chan action, 2)
go playerActor(ctx, dealer, actions)
go playerActor(ctx, chall, actions)
// TODO(zeph): send round start info
slog.InfoContext(ctx, "start game", "dealer", dealer.id, "challenger", chall.id)
broadcast(ctx, g, dealer, chall, obs)
for {
select {
case <-ctx.Done():