mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
We can add an integer to a Value
We have defined corresponding operators, so rely on them to streamline the code and increase readibility. No functional change.
This commit is contained in:
+1
-1
@@ -270,7 +270,7 @@ Value Entry::shelter_storm(const Position& pos, Square ksq) {
|
||||
if ( (MiddleEdges & make_square(f, rkThem))
|
||||
&& file_of(ksq) == f
|
||||
&& relative_rank(Us, ksq) == rkThem - 1)
|
||||
safety += Value(200);
|
||||
safety += 200;
|
||||
else
|
||||
safety -= ShelterWeakness[rkUs]
|
||||
+ StormDanger[rkUs == RANK_1 ? 0 : rkThem == rkUs + 1 ? 2 : 1][rkThem];
|
||||
|
||||
Reference in New Issue
Block a user