mahjong.hand_calculating.yaku

class mahjong.hand_calculating.yaku.Yaku[source]

Bases: ABC

abstractmethod is_condition_met(hand, *args)[source]

Is this yaku exists in the hand? :param: hand :param: args: some yaku requires additional attributes :return: boolean

Parameters:

hand (Collection[Sequence[int]])

Return type:

bool