Skip to content

Commit

Permalink
Update best move in asp. window fail high (#52)
Browse files Browse the repository at this point in the history
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

Bench: 9833783
  • Loading branch information
crippa1337 authored Jul 2, 2023
1 parent 4fa1a91 commit b753309
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
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

0 comments on commit b753309

Please sign in to comment.