public void RunTest_RoundRobinThenQuarterfinals_NonRandomMatches() { var competitors = Helpers.CompetitorListHelper.GetStandardCompetitors(8); TournamentStrategy tournamentStrategy = new RrKoSfFiTS(2.0, 2); MatchStrategy matchStrategy = new NonRandomMs(); var study = new Study(tournamentStrategy, matchStrategy, false); study.Run(competitors, _numberOfTournamentIterations); DisplayTestResults(tournamentStrategy, matchStrategy, study); Assert.AreEqual(1, competitors[0].TournamentRankMean); Assert.AreEqual(2, competitors[1].TournamentRankMean); Assert.AreEqual(3, competitors[2].TournamentRankMean); Assert.AreEqual(4, competitors[3].TournamentRankMean); Assert.AreEqual(5, competitors[4].TournamentRankMean); Assert.AreEqual(6, competitors[5].TournamentRankMean); Assert.AreEqual(7, competitors[6].TournamentRankMean); Assert.AreEqual(8, competitors[7].TournamentRankMean); }
public void RunTest_RrKoSfFiTS() { var competitors = Helpers.CompetitorListHelper.GetStandardCompetitors(8); TournamentStrategy tournamentStrategy = new RrKoSfFiTS(2.0, 2); MatchStrategy matchStrategy = new SimpleRandomMs(); Study study = new Study(tournamentStrategy, matchStrategy, false); study.Run(competitors, _numberOfTournamentIterations); DisplayTestResults(tournamentStrategy, matchStrategy, study); }
public void StudyRrKoSfFi() { List<Competitor> competitors = Helpers.CompetitorListHelper.GetEvenlySpacedCompetitors(_numberOfCompetitors); TournamentStrategy tournamentStrategy = new RrKoSfFiTS(2.0, 2); MatchStrategy matchStrategy = new SimpleRandomMs(); RunStudy(competitors, tournamentStrategy, matchStrategy); }