public StrategyComparisonResults(StrategyComparison comparison, bool gatherStats)
 {
     this.comparison = comparison;
     this.statGatherer = gatherStats ? new StatsPerTurnGameLog(comparison.NumberOfPlayers, comparison.gameConfig.cardGameSubset) : null;
     this.winnerCount = new int[comparison.NumberOfPlayers];
     this.tieCount = 0;
     this.maxTurnNumber = -1;
     this.pointSpreadHistogramData = new HistogramData();
     this.gameEndOnTurnHistogramData = new HistogramData();
 }
Пример #2
0
 public StrategyComparisonResults(StrategyComparison comparison, bool gatherStats)
 {
     this.comparison                 = comparison;
     this.statGatherer               = gatherStats ? new StatsPerTurnGameLog(comparison.NumberOfPlayers, comparison.gameConfig.cardGameSubset) : null;
     this.winnerCount                = new int[comparison.NumberOfPlayers];
     this.tieCount                   = 0;
     this.maxTurnNumber              = -1;
     this.pointSpreadHistogramData   = new HistogramData();
     this.gameEndOnTurnHistogramData = new HistogramData();
 }
 private static void InsertHistogramIntegrated(
     HtmlRenderer htmlWriter,
     string title,
     string xAxisLabel,
     HistogramData data,
     int xAxisMaxValue)
 {
     htmlWriter.InsertExpander(title, delegate()
     {
         htmlWriter.InsertLineGraph(
                     title,
                     "Turn",
                     xAxisLabel,
                     data.GetXAxis(xAxisMaxValue),
                     data.GetYAxisIntegrated(xAxisMaxValue)
                     );
     },
     collapseByDefault: true);
 }
 private static void InsertHistogram(
     HtmlRenderer htmlWriter,
     string title,
     string xAxisLabel,
     HistogramData data,
     int xAxisMaxValue,
     bool colllapsebyDefault = true,
     HtmlContentInserter content = null)
 {
     htmlWriter.InsertExpander(title, delegate()
     {
         htmlWriter.InsertLineGraph(
                     title,
                     "Turn",
                     xAxisLabel,
                     data.GetXAxis(xAxisMaxValue),
                     data.GetYAxis(xAxisMaxValue)
                     );
         if (content != null)
             content();
     },
     collapseByDefault: colllapsebyDefault);
 }