mahjong.hand_calculating.yaku_list.yakuman

class mahjong.hand_calculating.yaku_list.yakuman.Chiihou[source]

Bases: Yaku

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

class mahjong.hand_calculating.yaku_list.yakuman.Chinroutou[source]

Bases: Yaku

is_condition_met(hand, *args)[source]

Hand composed entirely of terminal tiles. :param hand: list of hand’s sets :return: boolean

Parameters:

hand (Collection[Sequence[int]])

Return type:

bool

class mahjong.hand_calculating.yaku_list.yakuman.ChuurenPoutou[source]

Bases: Yaku

The hand contains 1-1-1-2-3-4-5-6-7-8-9-9-9 of one suit, plus any other tile of the same suit.

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

class mahjong.hand_calculating.yaku_list.yakuman.DaburuChuurenPoutou[source]

Bases: Yaku

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

class mahjong.hand_calculating.yaku_list.yakuman.DaburuKokushiMusou[source]

Bases: Yaku

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

class mahjong.hand_calculating.yaku_list.yakuman.DaiSuushii[source]

Bases: Yaku

The hand contains four sets of winds

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

class mahjong.hand_calculating.yaku_list.yakuman.Daichisei[source]

Bases: Yaku

Yaku situation

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

class mahjong.hand_calculating.yaku_list.yakuman.Daisangen[source]

Bases: Yaku

The hand contains three sets of dragons

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

class mahjong.hand_calculating.yaku_list.yakuman.Daisharin[source]

Bases: Yaku

Optional yakuman

The hand contains 2-2 3-3 4-4 5-5 6-6 7-7 8-8 of one pin suit

Optionally can be of any suit

is_condition_met(hand, allow_other_sets, *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]])

  • allow_other_sets (bool)

Return type:

bool

class mahjong.hand_calculating.yaku_list.yakuman.KokushiMusou[source]

Bases: Yaku

A hand composed of one of each of the terminals and honour tiles plus any tile that matches anything else in the hand.

is_condition_met(hand, tiles_34, *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]] | None)

  • tiles_34 (Sequence[int])

Return type:

bool

class mahjong.hand_calculating.yaku_list.yakuman.Paarenchan[source]

Bases: Yaku

Yaku situation

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

class mahjong.hand_calculating.yaku_list.yakuman.RenhouYakuman[source]

Bases: Yaku

Yaku situation

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

class mahjong.hand_calculating.yaku_list.yakuman.Ryuuiisou[source]

Bases: Yaku

Hand composed entirely of green tiles. Green tiles are: green dragons and 2, 3, 4, 6 and 8 of sou.

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

class mahjong.hand_calculating.yaku_list.yakuman.Sashikomi[source]

Bases: Yaku

Yaku situation

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

class mahjong.hand_calculating.yaku_list.yakuman.Shousuushii[source]

Bases: Yaku

The hand contains three sets of winds and a pair of the remaining wind

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

class mahjong.hand_calculating.yaku_list.yakuman.Suuankou[source]

Bases: Yaku

Four closed pon sets

is_condition_met(hand, win_tile, is_tsumo)[source]

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

Parameters:
  • hand (Collection[Sequence[int]])

  • win_tile (int)

  • is_tsumo (bool)

Return type:

bool

class mahjong.hand_calculating.yaku_list.yakuman.SuuankouTanki[source]

Bases: Yaku

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

class mahjong.hand_calculating.yaku_list.yakuman.Suukantsu[source]

Bases: Yaku

The hand with four kan sets

is_condition_met(hand, melds, *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]])

  • melds (Collection[Meld])

Return type:

bool

class mahjong.hand_calculating.yaku_list.yakuman.Tenhou[source]

Bases: Yaku

Yaku situation

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

class mahjong.hand_calculating.yaku_list.yakuman.Tsuuiisou[source]

Bases: Yaku

Hand composed entirely of honour tiles

is_condition_met(hand, *args)[source]

Hand composed entirely of honour tiles. :param hand: list of hand’s sets :return: boolean

Parameters:

hand (Collection[Sequence[int]])

Return type:

bool