aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/board/mod.rs10
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"),
}