Skip to content

Commit

Permalink
Tagged 20230428.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-moreton committed Apr 28, 2023
1 parent 69a4adc commit 6eb3e84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn repl() -> Result<()> {
let readline = rl.readline("");
match readline {
Ok(line) => {
rl.add_history_entry(line.as_str());
rl.add_history_entry(line.as_str()).or(Err(ReadlineError::Eof))?;
handle_cmd_line(&mut uci_state, &mut search_state, line)
},
Err(ReadlineError::Interrupted) => {
Expand Down
5 changes: 3 additions & 2 deletions src/quiesce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ pub fn quiesce(position: &Position, depth: u8, ply: u8, window: Window, search_s
move_scores.push((m, score));
}

while !move_scores.is_empty() {
let m = pick_high_score_move(&mut move_scores);
move_scores.sort_unstable_by(|a, b| b.1.cmp(&a.1));

for (m, _) in move_scores {

let mut new_position = *position;
make_move(position, m, &mut new_position);
Expand Down
2 changes: 1 addition & 1 deletion src/uci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ fn calc_from_colour_times(mut uci_state: &mut UciState, millis: u64, inc_millis:

fn cmd_uci() -> Either<String, Option<String>> {
Right(Some(
r#"id name Rusty Rival |20230427.0|
r#"id name Rusty Rival |20230428.1|
id author Chris Moreton
option name Clear Hash type button
option name MultiPV type spin default 1 min 1 max 20
Expand Down

0 comments on commit 6eb3e84

Please sign in to comment.