]> git.sesse.net Git - stockfish/commit - src/pawns.h
Further streamline connected pawn evaluation
authorlucasart <lucas.braesch@gmail.com>
Sun, 12 Oct 2014 19:03:49 +0000 (20:03 +0100)
committerJoona Kiiski <joona.kiiski@gmail.com>
Sun, 12 Oct 2014 19:03:49 +0000 (20:03 +0100)
commit91de6b0f37516462658f6e38db430813aa9e7ed8
tree82b4bfb94fb1588d6af815d2cec620ed70acac29
parent069073ea6882ccb27fe4b571ed08ebe6a4ad8c65
 Further streamline connected pawn evaluation

Make even more clear what are the terms that
contribute to evaluate connected pawns, and
completely separate them from the weights
that are now fully looked up in a table.

For future tuning makes sense to init the table with
a formula instead of hard-code it. This allows to
reduce problem space cardinality and makes tuning
easier.

And fix a MSVC warning while there:
warning C4804: '>>' : unsafe use of type 'bool' in operation

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