Skip to content

Commit

Permalink
修改副露的字符串表示
Browse files Browse the repository at this point in the history
  • Loading branch information
ssttkkl committed Oct 28, 2022
1 parent dcafc85 commit 7dda497
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mahjong_utils/models/furo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class Chi(Shuntsu, Furo):
"""

def __repr__(self):
return super(Shuntsu, self).__repr__()
return f"{self.tile.num}{self.tile.num + 1}{self.tile.num + 2}{self.tile.tile_type}"


@dataclass(frozen=True)
class Pon(Kotsu, Furo):
Expand All @@ -30,7 +31,7 @@ class Pon(Kotsu, Furo):
"""

def __repr__(self):
return super(Kotsu, self).__repr__()
return f"{self.tile.num}{self.tile.num}{self.tile.num}{self.tile.tile_type}"


@dataclass(frozen=True)
Expand Down

0 comments on commit 7dda497

Please sign in to comment.