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

Bump version to 1.5.1 #228

Merged
merged 2 commits into from
May 1, 2024
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
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "camel"
version = "1.5.0"
version = "1.5.1"
edition = "2021"

[dependencies]
Expand Down
18 changes: 0 additions & 18 deletions src/search/pvs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ fn pvs<const ROOT: bool, const MAIN_THREAD: bool, const ALLOW_NMR: bool>(
// Position and node type considerations.
let is_check = position.is_check();
let may_be_zug = may_be_zugzwang(position);
let is_pv = alpha != beta - 1;

// Null move pruning: if we "pass" our turn and still get a beta cutoff,
// this position is far too good to be true.
Expand Down Expand Up @@ -184,23 +183,6 @@ fn pvs<const ROOT: bool, const MAIN_THREAD: bool, const ALLOW_NMR: bool>(
}
}

// Internal iterative deepening: get a hash move from a reduced search.
// This is useless in most cases, but can be very useful in some
// where standard move ordering fails to be decent.
if is_pv && !is_check && !ROOT && depth >= 4 && table.get_hash_move(position).is_none() {
let (_, iid_count) = pvs::<true, MAIN_THREAD, false>(
position,
depth.saturating_sub(2),
alpha,
beta,
table.clone(),
constraint,
history,
ply,
);
count += iid_count;
}

// Prepare move generation and sorting. This is lazy and works in stages.
let mut picker =
MovePicker::<false>::new(position, table.clone(), ply, ROOT && !MAIN_THREAD).peekable();
Expand Down
Loading