Exemplo n.º 1
0
 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>();
 }
Exemplo n.º 2
0
 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
     };
 }