Final version, check bugfix

This commit is contained in:
2022-04-19 02:29:01 -04:00
parent 66195867eb
commit 7415fac59b
2 changed files with 23 additions and 16 deletions
+10 -1
View File
@@ -439,7 +439,16 @@ int Game::board_heuristic(Board current_board)
int found_attackers = current_board.get_attackers_for_space(x+y*BOARD_SIZE);
heuristic += adden/((found_attackers!=0)?2:1);
if (found_attackers > 0)
{
adden /= 2;
}
else if (found_attackers < 0)
{
adden = 5*adden/4;
}
heuristic += adden;
}
}