pub fn score_position(position: f32) -> f32 {
    if position < POSITION_BONUS {
        let sc = POSITION_BONUS - position;
        POSITION_BOOST + (sc * sc)
    } else {
        POSITION_MIN.max((POSITION_BOOST + POSITION_BONUS) - position)
    }
}
/// Calculate the score associated to a given position
Calculate the score associated to a given position
Calculate the score associated to a given position
pub fn score_position(position: f32) -> f32 {
    if position < POSITION_BONUS {
        let sc = POSITION_BONUS - position;
        POSITION_BOOST + (sc * sc)
    } else {
        POSITION_MIN.max((POSITION_BOOST + POSITION_BONUS) - position)
    }
}
pub fn score_position ( position : f32 ) -> f32 { if position < POSITION_BONUS { let sc = POSITION_BONUS - position ; POSITION_BOOST + ( sc * sc ) } else { POSITION_MIN . max ( ( POSITION_BOOST + POSITION_BONUS ) - position ) } }
Calculate the score associated to a given position
Calculate the score associated to a given position
position
f32