-
Notifications
You must be signed in to change notification settings - Fork 0
/
xiangting.pyi
38 lines (33 loc) · 968 Bytes
/
xiangting.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# SPDX-FileCopyrightText: 2024 Apricot S.
# SPDX-License-Identifier: MIT
# This file is part of https://github.com/Apricot-S/xiangting-py
class ClaimedTilePosition:
LOW: ClaimedTilePosition
MIDDLE: ClaimedTilePosition
HIGH: ClaimedTilePosition
class FuluMianzi:
class Shunzi(FuluMianzi):
def __init__(
self,
tile: int,
position: ClaimedTilePosition,
/,
) -> None: ...
class Kezi(FuluMianzi):
def __init__(self, tile: int, /) -> None: ...
class Gangzi(FuluMianzi):
def __init__(self, tile: int, /) -> None: ...
def calculate_replacement_number(
bingpai: list[int],
fulu_mianzi_list: list[FuluMianzi]
| list[FuluMianzi | None]
| list[None]
| None,
) -> int: ...
def calculate_replacement_number_3_player(
bingpai: list[int],
fulu_mianzi_list: list[FuluMianzi]
| list[FuluMianzi | None]
| list[None]
| None,
) -> int: ...