ritchie/hand/fu
Fu calculation. Fu is computed from the winning interpretation: the closed/open nature of each group, the waiting group, the wait kind, and the pair. Yakuman have no fu value.
Values
pub fn fu(input: agari.AgariInput, yakus: List(yaku.Yaku)) -> Int
Returns the fu value of a winning hand.
yakus must be the yaku detected for the same input. Yakuman have no fu, so
0 is returned for them.