Skip to content

SimulationPairResult

namespace Griff.Simulations;
public sealed class SimulationPairResult

How one pair of rows did over its runs.

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.

public int Losses { get; }

How many the second side won.

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.

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.

public string Second { get; }

The second side’s row, e.g. “Slime”.

public IReadOnlyDictionary<string, double> Values { get; }

Each measure’s value (see Measures), averaged over the runs.

public double WinRate { get; }

The share the first side won, from 0 to 1.

public int Wins { get; }

How many the first side won.

public override string ToString()