Пример #1
0
 public void PerftFull()
 {
     foreach (var perftPosition in Positions)
     {
         var perft = new Perft(Positions.Length);
         perft.AddPosition(perftPosition);
         var expected = perft.GetPositionCount(0, Positions.Length);
         var actual   = perft.DoPerft();
         Assert.Equal(expected, actual);
     }
 }
Пример #2
0
 public void PerftMedium()
 {
     foreach (var perftPosition in Positions)
     {
         var perft = new Perft(MediumCount);
         perft.AddPosition(perftPosition);
         var expected = perft.GetPositionCount(0, MediumCount);
         var actual   = perft.DoPerft();
         Assert.Equal(expected, actual);
     }
 }