[core] Export Score::CENTIPAWNS_PER_POINT to the crate

This constant is a conversion factor of points to the internal fixed point unit
of centipawns. Points are more familiar to people because pawns are worth 1 pt.

Calculate the scores of the various piece shapes with this constant.
This commit is contained in:
Eryn Wells 2025-07-12 17:11:52 -07:00
parent b3ff8dec49
commit b505606925
2 changed files with 10 additions and 7 deletions

View file

@ -31,7 +31,7 @@ impl Score {
/// The maximum possible value of a score.
pub const MAX: Score = Score(Value::MAX);
const CENTIPAWNS_PER_POINT: f32 = 100.0;
pub(crate) const CENTIPAWNS_PER_POINT: f32 = 100.0;
#[must_use]
pub const fn new(value: Value) -> Self {