Ejemplo n.º 1
0
        public Strategies Append(Strategies olStrategies)
        {
            if (data.Length != olStrategies.data.Length)
            {
                throw new ArgumentException("Cannot sum Strategies with different lengths");
            }
            var sum = new int[data.Length];

            for (int i = 0; i < sum.Length; i++)
            {
                sum[i] = data[i] + olStrategies.data[i];
            }

            return(new Strategies(sum, Index));
        }
Ejemplo n.º 2
0
 private void IncrementStats(Strategies Bs, Strategies As)
 {
     BChoises[Bs.Index]++;
     AChoises[As.Index]++;
 }
Ejemplo n.º 3
0
 public TableLine(Strategies Bs, Strategies As)
 {
     Number  = totalNumber++;
     this.As = As;
     this.Bs = Bs;
 }