settings: Add Draw On HumanE xperience or not
Now "evaluate: Do not attack too early when first 5 moves" controlled by this option.
This commit is contained in:
parent
e2b7a37170
commit
96457ed7b9
|
@ -19,6 +19,7 @@
|
|||
#include "bitboard.h"
|
||||
#include "evaluate.h"
|
||||
#include "thread.h"
|
||||
#include "option.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
|
@ -57,10 +58,12 @@ Value Evaluation::value()
|
|||
|
||||
case Phase::placing:
|
||||
#ifdef EVALUATE_MOBILITY
|
||||
if (pos.piece_on_board_count(WHITE) + pos.piece_on_board_count(BLACK) <= 5) {
|
||||
value += (Value)pos.get_mobility_diff();
|
||||
if (gameOptions.getDrawOnHumanExperience()) {
|
||||
if (pos.piece_on_board_count(WHITE) + pos.piece_on_board_count(BLACK) <= 5) {
|
||||
value += (Value)pos.get_mobility_diff();
|
||||
}
|
||||
//break;
|
||||
}
|
||||
//break;
|
||||
#endif /* EVALUATE_MOBILITY */
|
||||
|
||||
pieceInHandDiffCount = pos.piece_in_hand_count(WHITE) - pos.piece_in_hand_count(BLACK);
|
||||
|
|
|
@ -467,9 +467,11 @@ Depth get_search_depth(const Position *pos)
|
|||
|
||||
d = placingDepthTable[index];
|
||||
|
||||
if (index == 4 &&
|
||||
is_star_squares_full((Position *)pos)) {
|
||||
d = 1; // In order to use Mobility
|
||||
if (gameOptions.getDrawOnHumanExperience()) {
|
||||
if (index == 4 &&
|
||||
is_star_squares_full((Position *)pos)) {
|
||||
d = 1; // In order to use Mobility
|
||||
}
|
||||
}
|
||||
|
||||
if (d == 0) {
|
||||
|
|
Loading…
Reference in New Issue