public void TestObjectCreationByClassName() { TournamentStrategy s1 = new RrTS(); string className = "Rr"; Type tournamentStrategyType = Type.GetType(string.Format("TournamentSimulation.TournamentStrategies.{0}TS, TournamentSimulation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", className)); TournamentStrategy strategy = (TournamentStrategy)Activator.CreateInstance(tournamentStrategyType); }
public void RunTest_RrTS_1() { var competitors = Helpers.CompetitorListHelper.GetCompetitorsWithRandomizedSeeds(8); TournamentStrategy tournamentStrategy = new RrTS(1, 1); MatchStrategy matchStrategy = new SimpleRandomMs(); Study study = new Study(tournamentStrategy, matchStrategy, false); study.Run(competitors, _numberOfTournamentIterations, true); DisplayTestResults(tournamentStrategy, matchStrategy, study); }
public void StudyIterateCompetitors_Rr_1_FirstTo2_CompetitorNumberSensitivity() { for (int i = 2; i <= _numberOfCompetitors; i++) { List<Competitor> competitors = Helpers.CompetitorListHelper.GetEvenlySpacedCompetitors(i); TournamentStrategy tournamentStrategy = new RrTS(1, 2); MatchStrategy matchStrategy = new SimpleRandomMs(); RunStudy(competitors, tournamentStrategy, matchStrategy); } }
public void StudyRr_10() { List<Competitor> competitors = Helpers.CompetitorListHelper.GetEvenlySpacedCompetitors(_numberOfCompetitors); TournamentStrategy tournamentStrategy = new RrTS(10); MatchStrategy matchStrategy = new SimpleRandomMs(); RunStudy(competitors, tournamentStrategy, matchStrategy); }
public void StudyRr2_Dominant2In16() { var competitors = Helpers.CompetitorListHelper.GetCompetitorsWithTwoDominants_16(); TournamentStrategy tournamentStrategy = new RrTS(2); MatchStrategy matchStrategy = new SimpleRandomMs(); RunStudy(competitors, tournamentStrategy, matchStrategy); }
public void StudyRr_1_FirstTo2_ReasonableGuessCompetitors() { List<Competitor> competitors = Helpers.CompetitorListHelper.GetReasonableGuessCompetitors_8(); TournamentStrategy tournamentStrategy = new RrTS(1, 2); MatchStrategy matchStrategy = new SimpleRandomMs(); RunStudy(competitors, tournamentStrategy, matchStrategy); }