Skip to content

Commit 4b9f1cc

Browse files
Merge pull request #150 from pleco-rs/fix-midgame-centerpawn-conversion
Fix issue with midgame centipawn conversion
2 parents 26d6fbb + d442fa9 commit 4b9f1cc

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)