public RunningTournamentGame(TournamentGameInfo gameInfo, PreGameSpecs gameSpecs, bool doubleElemination)
 {
     this.gameInfo  = gameInfo;
     this.gameSpecs = gameSpecs;
     gameTree       = new TournamentTree(gameInfo.players, gameSpecs, true, doubleElemination);
     gameTree.traverseRounds(r => r.setServerVariables(gameInfo.admin, this));
     this.gameInfo.specs.players = gameTree.getPlayerOrder();
 }
 public PreTournamentGame(TournamentInfoMsg specs, IPeer admin, string roomID)
 {
     specs.tournamentID = roomID;
     gameInfo           = new TournamentGameInfo()
     {
         admin             = admin, roomID = roomID, specs = specs,
         connectedPeers    = new List <IPeer>(),
         players           = new List <TournamentPlayer>(),
         hostName          = "Admin",
         doubleElimination = specs.doubleElimination
     };
 }