diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-01-28 22:40:46 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-01-28 22:40:46 +0300 |
commit | 60c9daa2034ab517d65aac218108c4c87e9f9ec2 (patch) | |
tree | ff26c910fff14686c488eac1d5c9b4ad46d92a3f | |
parent | 674247fb2211392653ba92171cd53f3e556e2882 (diff) | |
download | chessnost-60c9daa2034ab517d65aac218108c4c87e9f9ec2.tar.gz |
feat: update pieces static eval
-rw-r--r-- | src/board/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/board/mod.rs b/src/board/mod.rs index a3d1fd9..f4fde0c 100644 --- a/src/board/mod.rs +++ b/src/board/mod.rs @@ -60,11 +60,11 @@ impl PieceType { // Return the price of the peice pub fn static_eval(&self) -> f32 { match self.without_color() { - PieceType::Pawn => 1., - PieceType::Bishop => 3., - PieceType::Knight => 3., - PieceType::Rook => 4.5, - PieceType::Queen => 9., + PieceType::Pawn => 1.0, + PieceType::Bishop => 3.3, + PieceType::Knight => 3.2, + PieceType::Rook => 5.0, + PieceType::Queen => 9.0, PieceType::King => 0., _ => panic!("Piece should be without color"), } |