Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (phase >= 224) { // endgame?
- int scores[] = { 20, 10, 5, 0, 0, 5, 10, 20 };
- libchess::Square kw = pos.king_square(libchess::constants::WHITE);
- libchess::Square kb = pos.king_square(libchess::constants::BLACK);
- score += scores[kb.rank()] * parameters.tune_edge_black_rank.value();
- score += scores[kb.file()] * parameters.tune_edge_black_file.value();
- score -= scores[kw.rank()] * parameters.tune_edge_white_rank.value();
- score -= scores[kw.file()] * parameters.tune_edge_white_file.value();
- }
Advertisement
Add Comment
Please, Sign In to add comment