[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:
parent
b3ff8dec49
commit
b505606925
2 changed files with 10 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue