func (g *Game) handleGameDelete(ctx context.Context, m message.Message, send messageSender) error {
	for n := range g.players {
		m := message.Message{
			Type:       message.LeaveGame,
			PlayerName: n,
			Info:       "game deleted",
		}
		send(m)
	}
	g.status = game.Deleted
	g.handleInfoChanged(send)
	return nil
}
// handleGameDelete sends game leave messages to all players in the game.
handleGameDelete sends game leave messages to all players in the game.
// handleGameDelete sends game leave messages to all players in the game .
func (g *Game) handleGameDelete(ctx context.Context, m message.Message, send messageSender) error {
	for n := range g.players {
		m := message.Message{
			Type:       message.LeaveGame,
			PlayerName: n,
			Info:       "game deleted",
		}
		send(m)
	}
	g.status = game.Deleted
	g.handleInfoChanged(send)
	return nil
}
func ( g * Game ) handleGameDelete ( ctx context . Context , m message . Message , send messageSender ) error { for n := range g . players { m := message . Message { Type : message . LeaveGame , PlayerName : n , Info : " " , } send ( m ) } g . status = game . Deleted g . handleInfoChanged ( send ) return nil }
handleGameDelete sends game leave messages to all players in the game.
handleGameDelete sends game leave messages to all players in the game .