Struct riichi_tools_rs::riichi::scores::Score [−][src]
Fields
han: u8
fu: u8
Implementations
impl Score
[src]
impl Score
[src]pub fn new(han: u8, fu: u8, oya: bool, tsumo: bool) -> Score
[src]
pub fn from_points(
points: u32,
oya: bool,
tsumo: bool,
fu_limit: u8
) -> Option<Vec<Score>>
[src]
points: u32,
oya: bool,
tsumo: bool,
fu_limit: u8
) -> Option<Vec<Score>>
Finds the first han + fu combination that reaches at least the value of points given.
pub fn total_points(&self) -> u32
[src]
Returns total points that will be distributed from this Score
pub fn points_from_oya(&self) -> u32
[src]
How many points will oya pay from this Score?
pub fn points_from_ko(&self) -> u32
[src]
How many points will non-oya pay from this Score?
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Score
impl RefUnwindSafe for Score
impl UnwindSafe for Score
impl UnwindSafe for Score