From 60c9daa2034ab517d65aac218108c4c87e9f9ec2 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 28 Jan 2023 22:40:46 +0300 Subject: feat: update pieces static eval --- src/board/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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"), } -- cgit v1.2.3