public void SetHhScores(int colorToMove) { for (var j = _nextToMove[_ply]; j < _nextToGenerate[_ply]; j++) { _moveScores[j] = GetHhScore(colorToMove, MoveUtil.GetFromToIndex(_moves[j])); } }
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); } }