From: Marco Costalba Date: Sat, 25 Oct 2014 05:03:42 +0000 (+0200) Subject: Reformat max_threat() X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=4f6b1bf3bee68f138d1b5fc234fd25901cffa42c;hp=4f6b1bf3bee68f138d1b5fc234fd25901cffa42c;ds=sidebyside 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. ---