func (r *Runner) sendError(err error, pn player.Name, out chan<- message.Message) {
	err = fmt.Errorf("player %v: %w", pn, err)
	r.log.Printf("game runner error: %v", err)
	m := message.Message{
		Type:       message.SocketError,
		Info:       err.Error(),
		PlayerName: pn,
	}
	message.Send(m, out, r.Debug, r.log)
}
// sendError adds a message for the player on the channel
sendError adds a message for the player on the channel
// sendError adds a message for the player on the channel
func (r *Runner) sendError(err error, pn player.Name, out chan<- message.Message) {
	err = fmt.Errorf("player %v: %w", pn, err)
	r.log.Printf("game runner error: %v", err)
	m := message.Message{
		Type:       message.SocketError,
		Info:       err.Error(),
		PlayerName: pn,
	}
	message.Send(m, out, r.Debug, r.log)
}
func ( r * Runner ) sendError ( err error , pn player . Name , out chan <- message . Message ) { err = fmt . Errorf ( " " , pn , err ) r . log . Printf ( " " , err ) m := message . Message { Type : message . SocketError , Info : err . Error ( ) , PlayerName : pn , } message . Send ( m , out , r . Debug , r . log ) }
sendError adds a message for the player on the channel
sendError adds a message for the player on the channel