Skip to content

Commit d442fa9

Browse files
committed
fix issue with midgame centipawn conversion
1 parent 3acd009 commit d442fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pleco/src/core/score.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl Score {
7373

7474
/// Gives the value of the score in centi-pawns
7575
pub fn centipawns(self) -> (f64, f64) {
76-
let mg: f64 = self.mg() as f64 / PAWN_EG as f64;
76+
let mg: f64 = self.mg() as f64 / PAWN_MG as f64;
7777
let eg: f64 = self.eg() as f64 / PAWN_EG as f64;
7878
(mg, eg)
7979
}

0 commit comments

Comments
 (0)