public LocalMatch(MatchConfiguration conf) : base(conf) { Browser = BotzoneProtocol.CurrentBrowser; Runners = conf.Select(x => { var runner = new LocalProgramRunner(); if (x.Type == PlayerType.LocalAI) { runner.ProgramPath = x.ID; } return(runner); }).ToArray(); Scores = new double[conf.Count]; DisplayLogs = new List <dynamic>(); Logs = new List <ILogItem>(); }
public BotzoneMatch(MatchConfiguration conf, string matchID) : base(conf) { MatchID = matchID; for (int i = 0; i < conf.Count; i++) { if (conf[i].Type != PlayerType.BotzoneBot) { MySlot = i; } } MyConf = Configuration[MySlot]; Runner = new LocalProgramRunner { ProgramPath = conf[MySlot].ID }; }