protected virtual int EvaluateMaterial(int pl, PieceType pieceType, int[] materialArr)
        {
            int score = BitboardUtils.Popcount(gameState.Pieces[pl, (int)pieceType]) * config.GetPieceValue(pieceType);

            materialArr[pl] += score;
            return(ApplySign(pl, score));
        }
Beispiel #2
0
        private int GetMaterialGain(Move move)
        {
            PieceType capturedPiece = move.GetCapturedPieceType();

            return(evalConfig.GetPieceValue(capturedPiece) - evalConfig.GetPieceValue(move.MovedPieceType));
        }