We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26d6fbb + d442fa9 commit 4b9f1ccCopy full SHA for 4b9f1cc
pleco/src/core/score.rs
@@ -73,7 +73,7 @@ impl Score {
73
74
/// Gives the value of the score in centi-pawns
75
pub fn centipawns(self) -> (f64, f64) {
76
- let mg: f64 = self.mg() as f64 / PAWN_EG as f64;
+ let mg: f64 = self.mg() as f64 / PAWN_MG as f64;
77
let eg: f64 = self.eg() as f64 / PAWN_EG as f64;
78
(mg, eg)
79
}
0 commit comments