Example #1
0
 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);
 }
Example #2
0
 public StrategyComparisonResults(StrategyComparison comparison, bool gatherStats)
 {
     this.comparison                 = comparison;
     this.statGatherer               = gatherStats ? new StatsPerTurnGameLog(2, comparison.gameConfig.cardGameSubset) : null;
     this.winnerCount                = new int[2];
     this.tieCount                   = 0;
     this.maxTurnNumber              = -1;
     this.pointSpreadHistogramData   = new HistogramData();
     this.gameEndOnTurnHistogramData = new HistogramData();
 }
Example #3
0
 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);
 }