SimulationPairResult
namespace Griff.Simulations;
public sealed class SimulationPairResultHow one pair of rows did over its runs.
Properties
Section titled “Properties”DrawRate
Section titled “DrawRate”public double DrawRate { get; }The share nobody won, from 0 to 1.
public int Draws { get; }How many nobody won.
public string First { get; }The first side’s row, e.g. “Warrior”.
public double this[string measure] { get; }The value of measure, or NaN if it has none.
Losses
Section titled “Losses”public int Losses { get; }How many the second side won.
OneSided
Section titled “OneSided”public double OneSided { get; }How one-sided it is, from 0 (each side wins as often) to 1 (one side always wins): what the matrix colours it by, toward the first side’s colour when it wins more, the second’s when it loses more.
OverARun
Section titled “OverARun”public IReadOnlyDictionary<string, IReadOnlyList<double>> OverARun { get; }Each side’s health, what the first side earned and the values tracked, a point each turn (or second), averaged over the runs.
public int Runs { get; }How many runs it played.
Second
Section titled “Second”public string Second { get; }The second side’s row, e.g. “Slime”.
Values
Section titled “Values”public IReadOnlyDictionary<string, double> Values { get; }Each measure’s value (see Measures), averaged over the runs.
WinRate
Section titled “WinRate”public double WinRate { get; }The share the first side won, from 0 to 1.
public int Wins { get; }How many the first side won.
Methods
Section titled “Methods”ToString
Section titled “ToString”public override string ToString()