예제 #1
0
 public void SetHhScores(int colorToMove)
 {
     for (var j = _nextToMove[_ply]; j < _nextToGenerate[_ply]; j++)
     {
         _moveScores[j] = GetHhScore(colorToMove, MoveUtil.GetFromToIndex(_moves[j]));
     }
 }
예제 #2
0
 public void AddBfValue(int color, int move, int depth)
 {
     _bfMoves[color][MoveUtil.GetFromToIndex(move)] += depth * depth;
     if (EngineConstants.Assert)
     {
         Assert.IsTrue(_bfMoves[color][MoveUtil.GetFromToIndex(move)] >= 0);
     }
 }