forked from fairy-stockfish/Fairy-Stockfish
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyffish.pyi
More file actions
39 lines (36 loc) · 2.09 KB
/
pyffish.pyi
File metadata and controls
39 lines (36 loc) · 2.09 KB
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
39
from typing import Any
FEN_OK: int
NOTATION_DEFAULT: int
NOTATION_JANGGI: int
NOTATION_LAN: int
NOTATION_SAN: int
NOTATION_SHOGI_HODGES: int
NOTATION_SHOGI_HODGES_NUMBER: int
NOTATION_SHOGI_HOSKING: int
NOTATION_THAI_LAN: int
NOTATION_THAI_SAN: int
NOTATION_XIANGQI_WXF: int
VALUE_DRAW: int
VALUE_MATE: int
class error(Exception): ...
def version() -> tuple[int, int, int]: ...
def info() -> str: ...
def variants() -> list[str]: ...
def set_option(name: str, value: Any) -> None: ...
def load_variant_config(config: str) -> None: ...
def start_fen(variant: str) -> str: ...
def two_boards(variant: str) -> bool: ...
def captures_to_hand(variant: str) -> bool: ...
def get_san(variant: str, fen: str, move: str, chess960: bool = False, notation: int = NOTATION_DEFAULT) -> str: ...
def get_san_moves(variant: str, fen: str, movelist: list[str], chess960: bool = False, notation: int = NOTATION_DEFAULT) -> list[str]: ...
def legal_moves(variant: str, fen: str, movelist: list[str], chess960: bool = False) -> list[str]: ...
def get_fen(variant: str, fen: str, movelist: list[str], chess960: bool = False, sfen: bool = False, show_promoted: bool = False, count_started: int = 0) -> str: ...
def gives_check(variant: str, fen: str, movelist: list[str], chess960: bool = False) -> bool: ...
def is_capture(variant: str, fen: str, movelist: list[str], move: str, chess960: bool = False) -> bool: ...
def piece_to_partner(variant: str, fen: str, movelist: list[str], chess960: bool = False) -> str: ...
def game_result(variant: str, fen: str, movelist: list[str], chess960: bool = False) -> int: ...
def is_immediate_game_end(variant: str, fen: str, movelist: list[str], chess960: bool = False) -> tuple[bool, int]: ...
def is_optional_game_end(variant: str, fen: str, movelist: list[str], chess960: bool = False, count_started: int = 0) -> tuple[bool, int]: ...
def has_insufficient_material(variant: str, fen: str, movelist: list[str], chess960: bool = False) -> tuple[bool, bool]: ...
def validate_fen(fen: str, variant: str, chess960: bool = False) -> int: ...
def get_fog_fen(fen: str, variant: str, chess960: bool = False) -> str: ...