]> git.sesse.net Git - stockfish/commit
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)
commit4f6b1bf3bee68f138d1b5fc234fd25901cffa42c
tree4925d776963b5a3befd1723a46ff5e8b8d01a2e7
parent8d62ece9459b8338c27cf1fb52e27ea85d8061d5
Reformat max_threat()

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.
src/evaluate.cpp