예제 #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));
        }
예제 #2
0
파일: Table.cs 프로젝트: Danko19/TPR4
 private void IncrementStats(Strategies Bs, Strategies As)
 {
     BChoises[Bs.Index]++;
     AChoises[As.Index]++;
 }
예제 #3
0
파일: TableLine.cs 프로젝트: Danko19/TPR4
 public TableLine(Strategies Bs, Strategies As)
 {
     Number  = totalNumber++;
     this.As = As;
     this.Bs = Bs;
 }