Skip to content

Commit

Permalink
feat: created release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Saphereye committed Sep 30, 2024
1 parent 560a609 commit 3fea9a8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
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.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[package]
name = "shard"
version = "0.1.0"
version = "1.0.0"
edition = "2021"
authors = ["Saphereye <[email protected]>"]

[dependencies]
chess = "3.2.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Extend the quiescence search to include more types of moves, such as:
- [ ] Threats (moves that create immediate threats)

### Optimize Transposition Table
Use Zobrist hashing to efficiently hash board positions and implement a more sophisticated replacement scheme (e.g., always replace, depth- [ based replacement).
- [ ] Use Zobrist hashing to efficiently hash board positions and implement a more sophisticated replacement scheme (e.g., always replace, depth- [ based replacement).

### Implement Advanced Search Techniques
- [X] **Iterative Deepening**: Perform a series of depth- [ limited searches, increasing the depth with each iteration. This helps with move ordering and time management.
Expand Down
10 changes: 7 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ use std::time::{Duration, Instant};
const SAFETY_MARGIN: u64 = 1;
const DEFAULT_INCREMENT: u64 = 0;

pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub const AUTHORS: &'static str = env!("CARGO_PKG_AUTHORS");
pub const NAME: &'static str = env!("CARGO_PKG_NAME");

fn calculate_time_per_move(
is_white: bool,
wtime: u64,
Expand Down Expand Up @@ -45,8 +49,8 @@ fn main() {

match tokens[0] {
"uci" => {
println!("id name Shard");
println!("id author Saphereye");
println!("id name {} {}", NAME, VERSION);
println!("id author {}", AUTHORS);
println!("uciok");
}
"isready" => {
Expand Down Expand Up @@ -190,7 +194,7 @@ fn find_best_move(
legal_moves.iter().for_each(|&mv| {
let new_board = board.make_move_new(mv);

let score = negamax(
let score = -negamax(
&new_board,
depth - 1,
-20000,
Expand Down

0 comments on commit 3fea9a8

Please sign in to comment.