]> git.sesse.net Git - stockfish/commitdiff
Reformat max_threat()
authorMarco Costalba <mcostalba@gmail.com>
Sat, 25 Oct 2014 05:03:42 +0000 (07:03 +0200)
committerJoona Kiiski <joona.kiiski@gmail.com>
Sun, 26 Oct 2014 09:12:56 +0000 (09:12 +0000)
Helper function should just know how to find the
biggest piece type in a bitboard. All the threat
logic and data shoud be in evaluate_threats().

This nicely separates the scope of the two functions
in a more consistent way and simplifies the code.

No functional change.


No differences found