File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -1053,26 +1053,22 @@ namespace {
10531053
10541054 if ( pos.piece_on (SQ_A1) == W_BISHOP
10551055 && pos.piece_on (SQ_B2) == W_PAWN)
1056- correction += !pos.empty (SQ_B3) ? -CorneredBishop * 4
1057- : -CorneredBishop * 3 ;
1056+ correction -= CorneredBishop;
10581057
10591058 if ( pos.piece_on (SQ_H1) == W_BISHOP
10601059 && pos.piece_on (SQ_G2) == W_PAWN)
1061- correction += !pos.empty (SQ_G3) ? -CorneredBishop * 4
1062- : -CorneredBishop * 3 ;
1060+ correction -= CorneredBishop;
10631061
10641062 if ( pos.piece_on (SQ_A8) == B_BISHOP
10651063 && pos.piece_on (SQ_B7) == B_PAWN)
1066- correction += !pos.empty (SQ_B6) ? CorneredBishop * 4
1067- : CorneredBishop * 3 ;
1064+ correction += CorneredBishop;
10681065
10691066 if ( pos.piece_on (SQ_H8) == B_BISHOP
10701067 && pos.piece_on (SQ_G7) == B_PAWN)
1071- correction += !pos.empty (SQ_G6) ? CorneredBishop * 4
1072- : CorneredBishop * 3 ;
1068+ correction += CorneredBishop;
10731069
1074- return pos.side_to_move () == WHITE ? Value (correction)
1075- : -Value (correction);
1070+ return pos.side_to_move () == WHITE ? Value (5 * correction)
1071+ : -Value (5 * correction);
10761072 }
10771073
10781074} // namespace Eval
You can’t perform that action at this time.
0 commit comments