]> git.sesse.net Git - stockfish/commit
More readable trapped rook condition
authorMarco Costalba <mcostalba@gmail.com>
Sun, 13 Apr 2014 11:35:58 +0000 (13:35 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 13 Apr 2014 12:29:42 +0000 (14:29 +0200)
commit7bce8831d361317e0cf5156a888ca2d3e568a2ff
tree807b39139c925613cc775fdf41b3b21999269488
parent81a8c1118beb4fd961423eec69dcb56d7518457d
More readable trapped rook condition

Prefer

file_of(s) < file_of(ksq)

to the inidrect

file_of(ksq) < FILE_E

To evaluate if semiopen side to check is the left side.

Also other small touches while there.

No functional change.
src/evaluate.cpp
src/pawns.cpp
src/pawns.h