Struct skillratings::egf::EGFConfig
source · pub struct EGFConfig {
pub handicap: f64,
}
Expand description
Constants used in the EGF Calculations.
Fields§
§handicap: f64
The handicap, of the perspective of player one.
As a general rule, one handicap point is about equal to a 100 rating point difference.
If player one has a handicap in the game,
you can set this number to the amount of handicap stones given to the opponent.
If player two is the one with the handicap, set this number to the negative amount of stones given.
If an equal game is played, this value should be 0.0.
For example, if player two has a handicap of 4 points (player one starts with 4 stones), set this number to -4.0.
The maximum number should not exceed 9.0 or -9.0.
By default set to 0.0.
Implementations§
Trait Implementations§
impl Copy for EGFConfig
Auto Trait Implementations§
impl RefUnwindSafe for EGFConfig
impl Send for EGFConfig
impl Sync for EGFConfig
impl Unpin for EGFConfig
impl UnwindSafe for EGFConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more