mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Indentation fix in middle-game evaluation
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
6181e01c2a
commit
8dc4396477
1 changed files with 13 additions and 13 deletions
|
@ -348,23 +348,23 @@ Value do_evaluate(const Position& pos, EvalInfo& ei, int threadID) {
|
||||||
// Middle-game specific evaluation terms
|
// Middle-game specific evaluation terms
|
||||||
if (phase > PHASE_ENDGAME)
|
if (phase > PHASE_ENDGAME)
|
||||||
{
|
{
|
||||||
// Pawn storms in positions with opposite castling
|
// Pawn storms in positions with opposite castling
|
||||||
if ( square_file(pos.king_square(WHITE)) >= FILE_E
|
if ( square_file(pos.king_square(WHITE)) >= FILE_E
|
||||||
&& square_file(pos.king_square(BLACK)) <= FILE_D)
|
&& square_file(pos.king_square(BLACK)) <= FILE_D)
|
||||||
|
|
||||||
ei.value += make_score(ei.pi->queenside_storm_value(WHITE) - ei.pi->kingside_storm_value(BLACK), 0);
|
ei.value += make_score(ei.pi->queenside_storm_value(WHITE) - ei.pi->kingside_storm_value(BLACK), 0);
|
||||||
|
|
||||||
else if ( square_file(pos.king_square(WHITE)) <= FILE_D
|
else if ( square_file(pos.king_square(WHITE)) <= FILE_D
|
||||||
&& square_file(pos.king_square(BLACK)) >= FILE_E)
|
&& square_file(pos.king_square(BLACK)) >= FILE_E)
|
||||||
|
|
||||||
ei.value += make_score(ei.pi->kingside_storm_value(WHITE) - ei.pi->queenside_storm_value(BLACK), 0);
|
ei.value += make_score(ei.pi->kingside_storm_value(WHITE) - ei.pi->queenside_storm_value(BLACK), 0);
|
||||||
|
|
||||||
// Evaluate space for both sides
|
// Evaluate space for both sides
|
||||||
if (ei.mi->space_weight() > 0)
|
if (ei.mi->space_weight() > 0)
|
||||||
{
|
{
|
||||||
evaluate_space<WHITE, HasPopCnt>(pos, ei);
|
evaluate_space<WHITE, HasPopCnt>(pos, ei);
|
||||||
evaluate_space<BLACK, HasPopCnt>(pos, ei);
|
evaluate_space<BLACK, HasPopCnt>(pos, ei);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mobility
|
// Mobility
|
||||||
|
|
Loading…
Add table
Reference in a new issue