Skip to content

Commit

Permalink
push for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Apr 23, 2022
1 parent 076bf0c commit c03e4d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "Weiawaga"
authors = ["Heiaha"]
repository = "https://github.com/Heiaha/Weiawaga"
version = "4.0.0"
version = "5.0.0"
edition = "2021"
readme = "README.md"
rust-version = "1.59"
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ https://lichess.org/@/Weiawaga
- [Check extensions](https://www.chessprogramming.org/Check_Extensions)
- Primary Evaluation
- [NNUE](https://www.chessprogramming.org/NNUE)
- Incremental Updating
- Buckets
- Classical Evaluation
- [Material imbalance](https://www.chessprogramming.org/Material)
- [Piece square tables](https://www.chessprogramming.org/Piece-Square_Tables)
Expand All @@ -42,5 +44,6 @@ https://lichess.org/@/Weiawaga
- [Zobrist hashing](https://www.chessprogramming.org/Zobrist_Hashing) / [Transposition table](https://en.wikipedia.org/wiki/Transposition_table)

Move generation inspired by [surge](https://github.com/nkarve/surge). A previous version of this engine written in Java can be found [here](https://github.com/Heiaha/WeiawagaJ).
The NNUE training code can be found [here](https://github.com/Heiaha/Mimir).

**[What's a Weiawaga?](https://www.youtube.com/watch?v=7lRpoYGzx0o)**
4 changes: 2 additions & 2 deletions src/evaluation/score.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type Value = i32;
pub type Phase = i32;

#[derive(Clone, Copy, Debug, Eq)]
pub struct Score(i32);
pub struct Score(Value);

macro_rules! S {
($x:expr, $y:expr) => {
Expand Down Expand Up @@ -41,7 +41,7 @@ impl Score {

#[inline(always)]
pub fn is_checkmate(value: Value) -> bool {
2 * value.abs() >= Self::INF
value.abs() >> 1 >= Self::INF
}

pub fn scores(&self) -> (Value, Value) {
Expand Down

0 comments on commit c03e4d6

Please sign in to comment.