Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update best move in asp. window fail high #52

Merged
merged 3 commits into from
Jul 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -358,3 +358,14 @@ Use more of the increment time
GAMES | N: 22376 W: 5740 L: 5481 D: 11155

====================================================================================
5.3 [July 2]

Update best move in asp. window fail high

STC - https://chess.swehosting.se/test/2188/
ELO | 11.44 +- 6.90 (95%)
SPRT | 8.0+0.08s Threads=1 Hash=32MB
LLR | 3.02 (-2.94, 2.94) [0.00, 5.00]
GAMES | N: 5288 W: 1525 L: 1351 D: 2412

====================================================================================
7 changes: 5 additions & 2 deletions engine/src/body/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ impl Search {

for d in 1..=depth {
self.info.seldepth = 0;
score = self.aspiration_window(board, &mut pv, score, d as i32);
score = self.aspiration_window(board, &mut pv, score, d as i32, &mut best_move);

// Max time is up
if self.info.stop && d > 1 {
Expand Down Expand Up @@ -600,6 +600,7 @@ impl Search {
pv: &mut PVTable,
prev_eval: i32,
mut depth: i32,
best_move: &mut Option<Move>,
) -> i32 {
let mut score: i32;
let init_depth = depth;
Expand Down Expand Up @@ -634,6 +635,8 @@ impl Search {
beta = (INFINITY).min(score + delta);

depth -= i32::from(score.abs() < MATE_IN);

*best_move = pv.best_move();
}
// Search succeeded
else {
Expand Down Expand Up @@ -703,7 +706,7 @@ impl Search {

for d in 1..=depth {
self.info.seldepth = 0;
score = self.aspiration_window(board, &mut pv, score, d as i32);
score = self.aspiration_window(board, &mut pv, score, d as i32, &mut best_move);

if self.info.stop && d > 1 {
break;
Expand Down
2 changes: 1 addition & 1 deletion engine/src/uci/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub enum SearchType {
}

fn id() {
println!("id name Svart 5.2");
println!("id name Svart 5.3");
println!("id author Crippa");
}

Expand Down