diff --git a/.doctrees/cshogi.doctree b/.doctrees/cshogi.doctree index a84f898..fea8dc1 100644 Binary files a/.doctrees/cshogi.doctree and b/.doctrees/cshogi.doctree differ diff --git a/.doctrees/environment.pickle b/.doctrees/environment.pickle index 640fd2f..4a200e1 100644 Binary files a/.doctrees/environment.pickle and b/.doctrees/environment.pickle differ diff --git a/_modules/cshogi/KIF.html b/_modules/cshogi/KIF.html index ae7f2b6..666b8e9 100644 --- a/_modules/cshogi/KIF.html +++ b/_modules/cshogi/KIF.html @@ -287,9 +287,13 @@
if len(moves) - len(comments) > 1:
comments.extend([None]*(len(moves) - len(comments) - 1))
if line[:2] == "**":
- comments.append(line[2:])
+ comment = line[2:]
else:
- comments.append(line[1:])
+ comment = line[1:]
+ if len(comments) == len(moves):
+ comments[-1] += "\n" + comment
+ else:
+ comments.append(comment)
else:
header_comments.append(line[1:])
elif ':' in line:
diff --git a/cshogi.html b/cshogi.html
index c6b5b0d..acd20e8 100644
--- a/cshogi.html
+++ b/cshogi.html
@@ -1619,7 +1619,7 @@ cshogi packageThe CSA representation of the move.
Return type:
-str
+bytes
@@ -1636,7 +1636,7 @@ cshogi packageThe USI representation of the move.
Return type:
-str
+bytes
diff --git a/searchindex.js b/searchindex.js
index c1a91fd..ce05269 100644
--- a/searchindex.js
+++ b/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["about", "cshogi", "cshogi.dlshogi", "cshogi.gym_shogi", "cshogi.gym_shogi.envs", "cshogi.usi", "cshogi.web", "index", "installation", "quickstart"], "filenames": ["about.rst", "cshogi.rst", "cshogi.dlshogi.rst", "cshogi.gym_shogi.rst", "cshogi.gym_shogi.envs.rst", "cshogi.usi.rst", "cshogi.web.rst", "index.rst", "installation.rst", "quickstart.rst"], "titles": ["About cshogi", "cshogi package", "cshogi.dlshogi package", "cshogi.gym_shogi package", "cshogi.gym_shogi.envs package", "cshogi.usi package", "cshogi.web package", "Welcome to cshogi\u2019s documentation!", "Installation", "Quickstart"], "terms": {"python": [0, 7], "shogi": [0, 1, 4, 5, 6, 7], "i": [0, 1, 4, 5, 6, 7, 9], "an": [0, 1, 2, 4, 5, 6, 7, 9], "extrem": 0, "us": [0, 1, 2, 6, 8], "librari": [0, 7], "can": [0, 1, 4, 8, 9], "its": [0, 1, 5], "slow": 0, "drawback": 0, "depend": [0, 8], "applic": 0, "It": [0, 1], "describ": 0, "offici": 0, "websit": 0, "well": 0, "purpos": 0, "simpli": 0, "abstractli": 0, "rather": 0, "than": [0, 8], "focus": 0, "speed": 0, "howev": 0, "becom": 0, "bottleneck": 0, "when": [0, 1], "try": 0, "machin": [0, 7], "learn": [0, 7], "therefor": 0, "decid": 0, "creat": [0, 1, 7, 9], "oper": 0, "quickli": 0, "possibl": 0, "from": [0, 1, 2, 5, 6, 9], "insid": 0, "board": [0, 1, 2, 4, 6, 7, 9], "repres": [0, 1, 2, 4, 5], "bitboard": 0, "": [0, 1, 5, 9], "bit": [0, 1], "ar": [0, 8, 9], "veri": 0, "improv": 0, "expect": 0, "develop": 0, "part": 0, "c": [0, 1, 8], "make": [0, 1, 2, 4, 5, 7, 9], "callabl": [0, 1, 5], "For": 0, "thi": [0, 1, 4], "reason": [0, 1], "aperi": [0, 1, 9], "sourc": [0, 1, 2, 5, 6], "code": [0, 1], "wai": 0, "call": 0, "numer": [0, 9], "valu": [0, 1, 5], "In": [0, 1], "class": [0, 1, 4, 5, 6], "conveni": 0, "method": 0, "provid": [0, 5, 7], "thei": [0, 9], "made": [0, 1, 4], "emphasi": 0, "instead": 0, "sever": 0, "helper": [0, 9], "prepar": 0, "move_to": [0, 1, 7], "move_from": [0, 1, 7], "move_cap": [0, 1, 7], "move_drop_hand_piec": [0, 1, 7], "move_is_promot": [0, 1, 7], "move_is_drop": [0, 1, 7], "move_to_usi": [0, 1, 7, 9], "move_to_csa": [0, 1, 7, 9], "appli": [0, 1], "perform": [0, 1], "If": [0, 1, 8], "incorrect": [0, 1], "pass": [0, 1], "data": [0, 1], "mai": [0, 5], "corrupt": 0, "program": 0, "termin": 0, "abnorm": 0, "due": [0, 1], "access": [0, 6], "violat": 0, "other": 0, "issu": 0, "The": [0, 1, 4, 5, 6], "compli": 0, "number": [0, 1, 4, 5, 6, 9], "0": [0, 1, 5, 8, 9], "80": 0, "care": 0, "correspond": [0, 1], "differ": [0, 1], "pleas": 0, "constant": 0, "like": 0, "a1": 0, "a2": 0, "directli": 0, "alphabet": 0, "rank": 0, "file": [0, 1, 6], "also": 0, "Be": 0, "piece_types_with_non": 0, "piece_typ": [0, 1, 7], "defin": [0, 1], "follow": [0, 1, 8], "none": [0, 1, 4, 5, 6], "pawn": 0, "lanc": 0, "knight": 0, "silver": 0, "bishop": 0, "rook": 0, "gold": 0, "king": [0, 1], "prom_pawn": 0, "prom_lanc": 0, "prom_knight": 0, "prom_silv": 0, "prom_bishop": 0, "prom_rook": 0, "rang": 0, "15": 0, "bpawn": [0, 1], "blanc": 0, "bknight": 0, "bsilver": 0, "bbishop": 0, "brook": 0, "bgold": 0, "bking": 0, "bprom_pawn": 0, "bprom_lanc": 0, "bprom_knight": 0, "bprom_silv": 0, "bprom_bishop": 0, "bprom_rook": 0, "notus": 0, "wpawn": 0, "wlanc": 0, "wknight": 0, "wsilver": 0, "wbishop": 0, "wrook": 0, "wgold": 0, "wking": 0, "wprom_pawn": 0, "wprom_lanc": 0, "wprom_knight": 0, "wprom_silv": 0, "wprom_bishop": 0, "wprom_rook": 0, "31": 0, "hand_piec": 0, "return": [0, 1, 2, 4, 5], "pieces_in_hand": [0, 1, 7], "order": 0, "hpawn": [0, 1], "hlanc": 0, "hknight": 0, "hsilver": 0, "hgold": 0, "hbishop": 0, "hrook": 0, "7": [0, 9], "base": [1, 4, 5, 6], "object": [1, 2, 4, 5, 6], "paramet": [1, 2, 4, 5, 6], "sfen": [1, 4, 5, 6, 7, 9], "str": [1, 4, 5, 6], "option": [1, 4, 5, 6], "A": [1, 2, 4, 5], "string": [1, 4, 5], "format": [1, 7, 9], "exampl": [1, 5, 7, 9], "initi": [1, 4, 5, 6], "lnsgkgsnl": 1, "1r5b1": 1, "ppppppppp": 1, "9": [1, 2, 5, 9], "1b5r1": 1, "b": [1, 9], "1": [1, 9], "board2": 1, "book_kei": [1, 7], "get": [1, 5], "kei": 1, "open": [1, 7], "book": 1, "current": [1, 2, 4, 5], "state": [1, 2, 4, 5], "type": [1, 4, 5], "long": 1, "book_key_aft": [1, 7], "after": [1, 5], "specif": 1, "move": [1, 2, 4, 5, 6, 7, 9], "int": [1, 4, 5, 6], "result": [1, 5], "copi": [1, 7], "new": 1, "same": 1, "csa_po": [1, 7], "posit": [1, 5, 6, 7, 9], "comput": 1, "associ": 1, "drop_mov": [1, 7], "drop": 1, "to_squar": 1, "destin": 1, "squar": 1, "index": [1, 7], "drop_piece_typ": 1, "piec": [1, 7], "integ": [1, 2], "histori": [1, 7], "game": [1, 2, 4, 5, 6, 9], "list": [1, 4, 5, 9], "is_check": [1, 7, 9], "determin": [1, 9], "check": [1, 5, 9], "true": [1, 5, 9], "fals": [1, 5, 6, 9], "otherwis": [1, 4], "bool": [1, 4, 5], "is_draw": [1, 7, 9], "whether": [1, 5], "draw": [1, 4, 6, 9], "anoth": 1, "special": 1, "condit": [1, 5], "ply": 1, "up": 1, "default": [1, 4, 5, 6], "maximum": 1, "statu": [1, 4], "could": 1, "one": [1, 4, 9], "repetition_draw": [1, 9], "case": 1, "repeat": 1, "repetition_win": 1, "win": [1, 7], "consecut": 1, "repetition_los": 1, "loss": 1, "repetition_superior": 1, "superior": 1, "repetition_inferior": 1, "inferior": 1, "not_repetit": 1, "abov": 1, "enum": 1, "is_game_ov": [1, 7, 9], "over": [1, 5], "is_leg": [1, 7], "legal": [1, 7, 9], "is_mat": [1, 7], "mate": [1, 5], "met": 1, "given": [1, 2, 6], "even": 1, "is_nyugyoku": [1, 7, 9], "accord": 1, "ny\u016bgyoku": 1, "declar": [1, 9], "rule": 1, "27": 1, "point": 1, "enter": 1, "is_ok": [1, 7], "valid": 1, "is_pseudo_leg": [1, 7], "pseudo": 1, "king_squar": [1, 7], "color": [1, 2], "either": 1, "black": [1, 5], "white": [1, 5], "specifi": [1, 4], "legal_mov": [1, 7, 9], "gener": [1, 2, 7, 9], "iter": 1, "yield": 1, "legalmovelist": [1, 7], "mate_mov": [1, 7], "find": 1, "odd": 1, "should": 1, "greater": 1, "equal": 1, "3": [1, 9], "mate_move_in_1pli": [1, 7], "from_squar": 1, "start": [1, 5, 7, 9], "promot": 1, "involv": 1, "move_from_csa": [1, 7, 9], "move_from_move16": [1, 7], "16": 1, "move16": [1, 7], "unsign": 1, "short": 1, "move_from_psv": [1, 7], "psv": 1, "move_from_usi": [1, 7, 9], "usi": [1, 6, 7, 9], "move_numb": [1, 7], "peek": [1, 7], "last": 1, "sq": 1, "piece_plan": [1, 7], "plane": 1, "store": 1, "ndarrai": [1, 2, 4], "featur": [1, 2], "np": [1, 4, 9], "dimens": 1, "features_num": 1, "dtype": [1, 9], "float32": 1, "where": 1, "len": 1, "2": [1, 9], "sum": 1, "max_pieces_in_hand": 1, "piece_planes_rot": [1, 7], "180": 1, "degre": 1, "rotat": 1, "arrai": [1, 2], "hand": 1, "both": 1, "player": [1, 6], "tupl": [1, 4, 5], "contain": [1, 4, 5], "pop": [1, 7, 9], "pop_pass": [1, 7], "pseudo_legal_move_is_leg": [1, 7], "pseudo_legal_mov": [1, 7], "pseudolegalmovelist": [1, 7], "push": [1, 7], "each": [1, 4, 6], "ha": 1, "mean": 1, "xxxxxxxx": 1, "x1111111": 1, "xx111111": 1, "1xxxxxxx": 1, "piecetyp": 1, "squarenum": 1, "x1xxxxxx": 1, "flag": [1, 4], "xxxx1111": 1, "1111xxxx": 1, "captur": [1, 5], "encod": 1, "push_csa": [1, 7], "invalid": 1, "push_move16": [1, 7], "lower": [1, 8], "inget": 1, "push_pass": [1, 7], "push_psv": [1, 7], "which": 1, "yaneura": [1, 9], "push_usi": [1, 7, 9], "univers": [1, 5], "interfac": [1, 4, 5, 6], "reset": [1, 3, 4, 5, 7], "set_hcp": [1, 7, 9], "set": [1, 2, 5], "huffmancodedpo": [1, 9], "hcp": [1, 4, 9], "compress": [1, 9], "rais": 1, "runtimeerror": 1, "fromfil": [1, 9], "hcpfile": 1, "asarrai": 1, "set_piec": [1, 7], "edit": 1, "pieces_src": 1, "pieces_in_hand_src": 1, "pieces_dst": 1, "g1": 1, "f1": 1, "c1": 1, "pieces_in_hand_dst": 1, "board_dst": 1, "set_posit": [1, 7], "startpo": [1, 5, 6], "2g2f": [1, 9], "set_psfen": [1, 7, 9], "packedsfen": 1, "psfen": [1, 9], "psfenfil": 1, "set_sfen": [1, 7], "forsyth": 1, "edward": 1, "notat": 1, "to_bod": [1, 7], "convert": [1, 9], "diagram": 1, "bod": 1, "to_hcp": [1, 7, 9], "to_psfen": [1, 7], "to_svg": [1, 7], "svg": [1, 4], "represent": [1, 4, 9], "lastmov": 1, "ani": [1, 4], "scale": 1, "float": [1, 4], "factor": 1, "svgwrapper": [1, 4, 7], "turn": [1, 7], "first": [1, 2, 6, 8], "second": [1, 2, 6], "zobrist_hash": [1, 7], "calcul": 1, "zobrist": 1, "hash": 1, "64": 1, "dfpn": [1, 7], "search": [1, 5, 7], "df": 1, "pn": 1, "algorithm": 1, "depth": 1, "node": [1, 5, 6], "draw_pli": 1, "pli": 1, "consid": 1, "get_mov": [1, 7], "found": [1, 5], "get_pv": [1, 7], "princip": [1, 5], "variat": [1, 5], "pv": [1, 5], "sequenc": 1, "checkmat": [1, 5], "search_andnod": [1, 7], "AND": 1, "searched_nod": [1, 7], "set_draw_pli": [1, 7], "set_max_depth": [1, 7], "max_depth": 1, "set_max_search_nod": [1, 7], "max_search_nod": 1, "stop": [1, 5, 7], "hand_piece_to_piece_typ": [1, 7], "identifi": 1, "hp": 1, "typic": 1, "move16_from_psv": [1, 7], "move16_to_psv": [1, 7], "extract": 1, "move_from_piece_typ": [1, 7], "move_rot": [1, 7], "oppon": [1, 7], "piece_to_piece_typ": [1, 7], "p": [1, 9], "to_csa": [1, 7], "to_usi": [1, 7], "export": [1, 7], "path": [1, 6], "append": 1, "handl": [1, 5, 9], "close": [1, 7], "endgam": [1, 7], "time": [1, 5, 6, 7], "write": 1, "taken": 1, "info": [1, 5, 6, 7], "init_board": 1, "name": [1, 5, 6, 7], "var_info": [1, 7], "comment": [1, 7], "version": [1, 7, 8], "inform": [1, 5], "dict": [1, 4, 5, 6], "addit": [1, 8], "variabl": 1, "about": [1, 7], "sep": 1, "n": 1, "separ": 1, "charact": 1, "newlin": 1, "parser": [1, 7], "pars": 1, "record": 1, "standard": 1, "parse_csa_fil": [1, 7], "parse_csa_str": [1, 7], "csa_str": 1, "static": 1, "parse_fil": [1, 7], "parse_str": [1, 7], "more": [1, 9], "rate": [1, 7], "score": [1, 5, 7], "dictionari": [1, 5, 6], "variou": 1, "black_win": 1, "white_win": 1, "written": 1, "end": [1, 7, 9], "e": 1, "g": 1, "toryo": 1, "sennichit": 1, "header": [1, 7], "starttim": 1, "includ": 1, "date": 1, "first_play": 1, "second_play": 1, "datetim": 1, "japanes": 1, "handycap_sfen": [1, 7], "\u305d\u306e\u4ed6": 1, "\u4e09\u679a\u843d\u3061": 1, "lnsgkgsn1": 1, "w": [1, 9], "\u4e8c\u679a\u843d\u3061": 1, "\u4e94\u679a\u843d\u3061": 1, "2sgkgsn1": 1, "\u516b\u679a\u843d\u3061": 1, "3gkg3": 1, "\u516d\u679a\u843d\u3061": 1, "2sgkgs2": 1, "\u5341\u679a\u843d\u3061": 1, "4k4": 1, "\u53f3\u9999\u843d\u3061": 1, "1nsgkgsnl": 1, "\u56db\u679a\u843d\u3061": 1, "1nsgkgsn1": 1, "\u5de6\u4e94\u679a\u843d\u3061": 1, "1nsgkgs2": 1, "\u5e73\u624b": 1, "\u89d2\u843d\u3061": 1, "1r7": 1, "\u98db\u8eca\u843d\u3061": 1, "7b1": 1, "\u98db\u9999\u843d\u3061": 1, "\u9999\u843d\u3061": 1, "move_r": [1, 7], "re": [1, 5], "compil": [1, 5, 8], "\uff11\uff12\uff13\uff14\uff15\uff16\uff17\uff18\uff19": 1, "\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d": 1, "\u540c": 1, "u3000": 1, "\u6b69\u9999\u6842\u9280\u91d1\u89d2\u98db\u7389\u3068\u674f\u572d\u5168\u99ac\u9f8d": 1, "\u5de6": 1, "\u76f4": 1, "\u53f3": 1, "\u4e0a": 1, "\u5bc4": 1, "\u5f15": 1, "\u6253": 1, "\u6210": 1, "\u4e0d\u6210": 1, "result_r": [1, 7], "d": 1, "\u624b\u3067": 1, "\u5148": 1, "\u4e0b": 1, "\u5f8c": 1, "\u624b\u306e": 1, "\u52dd\u3061": 1, "\u5165\u7389\u52dd\u3061": 1, "\u53cd\u5247\u52dd\u3061": 1, "\u53cd\u5247\u8ca0\u3051": 1, "\u5343\u65e5\u624b": 1, "\u6301\u5c06\u68cb": 1, "\u4e2d\u65ad": 1, "instanc": [1, 4], "all": [1, 4, 5], "parserexcept": [1, 7], "error": 1, "parse_move_str": [1, 7], "line": [1, 5], "them": [1, 7, 9], "parse_pieces_in_hand": [1, 7], "target": 1, "descript": 1, "kif_str": 1, "move_to_ki2": [1, 7], "sec": 1, "sec_sum": 1, "resign": 1, "spent": 1, "total": 1, "dure": 1, "handicap": 1, "relat": [1, 5], "so": 1, "far": 1, "\u6295\u4e86": 1, "\u8a70\u307f": 1, "\u5207\u308c\u8ca0\u3051": 1, "z": 1, "except": 1, "board_to_bod": [1, 7], "move_to_bod": [1, 7], "move_to_kif": [1, 7], "prev_mov": 1, "sec_to_tim": [1, 7], "portabl": 1, "exist": 1, "movetext": [1, 7], "text": [1, 9], "section": 1, "actual": 1, "tag_pair": [1, 7], "event": 1, "site": 1, "round": 1, "tag": 1, "pair": 1, "metadata": [1, 3, 4], "move_to_san": [1, 7], "main": [1, 7, 9], "engine1": [1, 6], "engine2": [1, 6], "options1": [1, 6], "options2": [1, 6], "mate_win": 1, "byoyomi": [1, 5, 6], "inc": [1, 6], "256": [1, 6], "ponder": [1, 5, 6], "no_swap": 1, "opening_mov": 1, "24": 1, "opening_se": 1, "opening_index": 1, "keep_process": 1, "multi_csa": 1, "no_pgn_mov": 1, "is_displai": 1, "debug": [1, 5], "print_summari": 1, "callback": [1, 5], "execut": 1, "seri": 1, "between": [1, 6, 9], "two": [1, 6], "engin": [1, 5, 6, 9], "plai": [1, 5, 9], "threshold": 1, "fall": 1, "below": [1, 7, 9], "neg": 1, "millisecond": [1, 5, 6], "control": [1, 5, 6, 9], "increment": [1, 5, 6], "per": [1, 5], "befor": [1, 6], "disabl": 1, "swap": 1, "seed": 1, "random": 1, "shuffl": 1, "keep": 1, "process": 1, "run": [1, 6], "complet": 1, "multi": 1, "omit": 1, "displai": [1, 7, 9], "enabl": [1, 5], "mode": [1, 4, 5], "print": [1, 5, 9], "summari": 1, "match": [1, 6, 9], "function": [1, 9], "statist": 1, "to_scor": [1, 7], "m": 1, "usi_info_to_csa_com": [1, 7], "usi_info_to_scor": [1, 7], "diff": [1, 7], "draw_ratio": [1, 7], "ratio": 1, "error_margin": [1, 7], "margin": 1, "lo": [1, 7], "likelihood": 1, "percentag": 1, "point_ratio": [1, 7], "elo_diff": [1, 7], "erf_inv": [1, 7], "x": 1, "phi_inv": [1, 7], "dlshogi": [1, 7], "make_input_featur": [1, 2], "make_move_label": [1, 2], "gym_shogi": [1, 7], "env": [1, 3], "shogi_env": [1, 3], "shogi_vec_env": [1, 3], "connect": [1, 5], "gameov": [1, 5], "go": [1, 5, 6, 9], "go_mat": [1, 5], "isreadi": [1, 5, 6, 9], "ponderhit": [1, 5], "quit": [1, 5, 6], "setopt": [1, 5], "usinewgam": [1, 5, 6], "infolisten": [1, 5], "bestmov": [1, 5], "listen": [1, 5, 6], "mate_scor": [1, 5], "re_bestmov": [1, 5], "re_info": [1, 5], "multipvlisten": [1, 5], "re_multipv": [1, 5], "web": [1, 7, 8], "app": [1, 7], "human": [1, 4, 6], "colab": [1, 6], "usi_info_to_pv": [1, 6], "features1": 2, "features2": 2, "input": 2, "model": 2, "numpi": [2, 9], "shape": 2, "features1_num": 2, "fill": 2, "features2_num": 2, "label": 2, "context": 2, "submodul": [3, 7], "shogienv": [3, 4], "render": [3, 4, 6], "step": [3, 4], "shogivecenv": [3, 4], "action_spac": [3, 4], "observation_spac": [3, 4], "environ": 4, "simul": 4, "conform": 4, "openai": 4, "gym": 4, "ansi": 4, "desir": 4, "advanc": 4, "reward": 4, "done": 4, "num_env": 4, "vector": 4, "manag": [4, 7], "multipl": 4, "simultan": 4, "status": 4, "space": 4, "acttyp": 4, "obstyp": 4, "cmd": 5, "command": [5, 8], "launch": [5, 9], "upon": 5, "respons": 5, "send": 5, "notifi": 5, "btime": [5, 6], "wtime": [5, 6], "binc": [5, 6], "winc": [5, 6], "best": 5, "remain": 5, "limit": 5, "infinit": 5, "readi": 5, "wa": 5, "wait": 5, "exit": 5, "100000": 5, "listner": 5, "obtain": 5, "interact": 5, "info_listen": 5, "1000": 5, "properti": 5, "detail": 5, "regard": 5, "itself": 5, "cp": 5, "multipv": 5, "multipv_listen": 5, "human_input": 6, "name1": 6, "name2": 6, "csa": [6, 7, 9], "host": 6, "localhost": 6, "port": 6, "8000": 6, "replai": 6, "flask": 6, "via": 6, "configur": 6, "empti": [6, 9], "claim": 6, "hostnam": 6, "bind": 6, "server": 6, "fast": 7, "verif": 7, "protocol": 7, "support": 7, "instal": 7, "quickstart": 7, "packag": [7, 8], "modul": 7, "content": [7, 9], "ki2": 7, "kif": 7, "pgn": 7, "cli": [7, 9], "elo": 7, "subpackag": 7, "page": 7, "cython": 8, "compat": 8, "requir": 8, "pip": 8, "git": 8, "http": 8, "com": 8, "tadaoyamaoka": 8, "cshogi": [8, 9], "you": 8, "need": 8, "19": 8, "higher": 8, "have": 8, "upgrad": 8, "import": 9, "1g1f": 9, "3g3f": 9, "4g4f": 9, "5g5f": 9, "6g6f": 9, "7g7f": 9, "integr": 9, "ipython": 9, "jupyt": 9, "notebook": 9, "undo": 9, "ln4skl": 9, "3r1g3": 9, "1p2pgnp1": 9, "p1ppsbp1p": 9, "5p3": 9, "2ppp1p1p": 9, "ppbssg1p1": 9, "2r3gk1": 9, "ln5nl": 9, "43": 9, "8": 9, "6": 9, "5": 9, "4": 9, "p1": 9, "ky": 9, "ke": 9, "gi": 9, "ou": 9, "p2": 9, "hi": 9, "ki": 9, "p3": 9, "fu": 9, "p4": 9, "ka": 9, "p5": 9, "p6": 9, "p7": 9, "p8": 9, "p9": 9, "00fu": 9, "nyugyoku": 9, "judgment": 9, "repetit": 9, "There": 9, "ident": 9, "66309": 9, "1716fu": 9, "form": 9, "73275": 9, "7776fu": 9, "read": 9, "teacher": 9, "hcpe": 9, "huffmancodedposandev": 9, "bin": 9, "packedsfenvalu": 9, "save": 9, "tofil": 9, "lesserkaisrc": 9, "lesserkai": 9, "7nl": 9, "5kp2": 9, "3p2g1p": 9, "2p1gp3": 9, "p6sp": 9, "s1bgpn3": 9, "4npsp1": 9, "r4r2": 9, "l1": 9, "p3k1l": 9, "gsnlpb6p": 9, "122": 9}, "objects": {"": [[1, 0, 0, "-", "cshogi"]], "cshogi": [[1, 1, 1, "", "Board"], [1, 0, 0, "-", "CSA"], [1, 1, 1, "", "DfPn"], [1, 0, 0, "-", "KI2"], [1, 0, 0, "-", "KIF"], [1, 1, 1, "", "LegalMoveList"], [1, 0, 0, "-", "PGN"], [1, 1, 1, "", "PseudoLegalMoveList"], [1, 1, 1, "", "SvgWrapper"], [1, 0, 0, "-", "cli"], [2, 0, 0, "-", "dlshogi"], [1, 0, 0, "-", "elo"], [3, 0, 0, "-", "gym_shogi"], [1, 4, 1, "", "hand_piece_to_piece_type"], [1, 4, 1, "", "move16"], [1, 4, 1, "", "move16_from_psv"], [1, 4, 1, "", "move16_to_psv"], [1, 4, 1, "", "move_cap"], [1, 4, 1, "", "move_drop_hand_piece"], [1, 4, 1, "", "move_from"], [1, 4, 1, "", "move_from_piece_type"], [1, 4, 1, "", "move_is_drop"], [1, 4, 1, "", "move_is_promotion"], [1, 4, 1, "", "move_rotate"], [1, 4, 1, "", "move_to"], [1, 4, 1, "", "move_to_csa"], [1, 4, 1, "", "move_to_usi"], [1, 4, 1, "", "opponent"], [1, 4, 1, "", "piece_to_piece_type"], [1, 4, 1, "", "to_csa"], [1, 4, 1, "", "to_usi"], [5, 0, 0, "-", "usi"], [6, 0, 0, "-", "web"]], "cshogi.Board": [[1, 2, 1, "", "book_key"], [1, 2, 1, "", "book_key_after"], [1, 2, 1, "", "copy"], [1, 2, 1, "", "csa_pos"], [1, 2, 1, "", "drop_move"], [1, 3, 1, "", "history"], [1, 2, 1, "", "is_check"], [1, 2, 1, "", "is_draw"], [1, 2, 1, "", "is_game_over"], [1, 2, 1, "", "is_legal"], [1, 2, 1, "", "is_mate"], [1, 2, 1, "", "is_nyugyoku"], [1, 2, 1, "", "is_ok"], [1, 2, 1, "", "is_pseudo_legal"], [1, 2, 1, "", "king_square"], [1, 3, 1, "", "legal_moves"], [1, 2, 1, "", "mate_move"], [1, 2, 1, "", "mate_move_in_1ply"], [1, 2, 1, "", "move"], [1, 2, 1, "", "move_from_csa"], [1, 2, 1, "", "move_from_move16"], [1, 2, 1, "", "move_from_psv"], [1, 2, 1, "", "move_from_usi"], [1, 3, 1, "", "move_number"], [1, 2, 1, "", "peek"], [1, 2, 1, "", "piece"], [1, 2, 1, "", "piece_planes"], [1, 2, 1, "", "piece_planes_rotate"], [1, 2, 1, "", "piece_type"], [1, 3, 1, "", "pieces"], [1, 3, 1, "", "pieces_in_hand"], [1, 2, 1, "", "pop"], [1, 2, 1, "", "pop_pass"], [1, 2, 1, "", "pseudo_legal_move_is_legal"], [1, 3, 1, "", "pseudo_legal_moves"], [1, 2, 1, "", "push"], [1, 2, 1, "", "push_csa"], [1, 2, 1, "", "push_move16"], [1, 2, 1, "", "push_pass"], [1, 2, 1, "", "push_psv"], [1, 2, 1, "", "push_usi"], [1, 2, 1, "", "reset"], [1, 2, 1, "", "set_hcp"], [1, 2, 1, "", "set_pieces"], [1, 2, 1, "", "set_position"], [1, 2, 1, "", "set_psfen"], [1, 2, 1, "", "set_sfen"], [1, 2, 1, "", "sfen"], [1, 2, 1, "", "to_bod"], [1, 2, 1, "", "to_hcp"], [1, 2, 1, "", "to_psfen"], [1, 2, 1, "", "to_svg"], [1, 3, 1, "", "turn"], [1, 2, 1, "", "zobrist_hash"]], "cshogi.CSA": [[1, 1, 1, "", "Exporter"], [1, 1, 1, "", "Parser"]], "cshogi.CSA.Exporter": [[1, 2, 1, "", "close"], [1, 2, 1, "", "endgame"], [1, 2, 1, "", "info"], [1, 2, 1, "", "move"], [1, 2, 1, "", "open"]], "cshogi.CSA.Parser": [[1, 3, 1, "", "comment"], [1, 3, 1, "", "comments"], [1, 3, 1, "", "endgame"], [1, 3, 1, "", "moves"], [1, 3, 1, "", "names"], [1, 2, 1, "", "parse_csa_file"], [1, 2, 1, "", "parse_csa_str"], [1, 2, 1, "", "parse_file"], [1, 2, 1, "", "parse_str"], [1, 3, 1, "", "ratings"], [1, 3, 1, "", "scores"], [1, 3, 1, "", "sfen"], [1, 3, 1, "", "times"], [1, 3, 1, "", "var_info"], [1, 3, 1, "", "version"], [1, 3, 1, "", "win"]], "cshogi.DfPn": [[1, 2, 1, "", "get_move"], [1, 2, 1, "", "get_pv"], [1, 2, 1, "", "search"], [1, 2, 1, "", "search_andnode"], [1, 3, 1, "", "searched_node"], [1, 2, 1, "", "set_draw_ply"], [1, 2, 1, "", "set_max_depth"], [1, 2, 1, "", "set_max_search_node"], [1, 2, 1, "", "stop"]], "cshogi.KI2": [[1, 1, 1, "", "Exporter"], [1, 1, 1, "", "Parser"], [1, 4, 1, "", "move_to_ki2"]], "cshogi.KI2.Exporter": [[1, 2, 1, "", "close"], [1, 2, 1, "", "end"], [1, 2, 1, "", "header"], [1, 2, 1, "", "move"], [1, 2, 1, "", "open"]], "cshogi.KI2.Parser": [[1, 3, 1, "", "HANDYCAP_SFENS"], [1, 3, 1, "", "MOVE_RE"], [1, 3, 1, "", "RESULT_RE"], [1, 2, 1, "", "parse_file"], [1, 2, 1, "", "parse_move_str"], [1, 2, 1, "", "parse_pieces_in_hand"], [1, 2, 1, "", "parse_str"]], "cshogi.KIF": [[1, 1, 1, "", "Exporter"], [1, 1, 1, "", "Parser"], [1, 5, 1, "", "ParserException"], [1, 4, 1, "", "board_to_bod"], [1, 4, 1, "", "move_to_bod"], [1, 4, 1, "", "move_to_kif"], [1, 4, 1, "", "sec_to_time"]], "cshogi.KIF.Exporter": [[1, 2, 1, "", "close"], [1, 2, 1, "", "end"], [1, 2, 1, "", "header"], [1, 2, 1, "", "info"], [1, 2, 1, "", "move"], [1, 2, 1, "", "open"]], "cshogi.KIF.Parser": [[1, 3, 1, "", "HANDYCAP_SFENS"], [1, 3, 1, "", "MOVE_RE"], [1, 3, 1, "", "RESULT_RE"], [1, 2, 1, "", "parse_file"], [1, 2, 1, "", "parse_move_str"], [1, 2, 1, "", "parse_pieces_in_hand"], [1, 2, 1, "", "parse_str"]], "cshogi.PGN": [[1, 1, 1, "", "Exporter"], [1, 4, 1, "", "move_to_san"]], "cshogi.PGN.Exporter": [[1, 2, 1, "", "close"], [1, 2, 1, "", "movetext"], [1, 2, 1, "", "open"], [1, 2, 1, "", "tag_pair"]], "cshogi.cli": [[1, 4, 1, "", "main"], [1, 4, 1, "", "to_score"], [1, 4, 1, "", "usi_info_to_csa_comment"], [1, 4, 1, "", "usi_info_to_score"]], "cshogi.dlshogi": [[2, 4, 1, "", "make_input_features"], [2, 4, 1, "", "make_move_label"]], "cshogi.elo": [[1, 1, 1, "", "Elo"], [1, 4, 1, "", "elo_diff"], [1, 4, 1, "", "erf_inv"], [1, 4, 1, "", "phi_inv"]], "cshogi.elo.Elo": [[1, 2, 1, "", "diff"], [1, 2, 1, "", "draw_ratio"], [1, 2, 1, "", "error_margin"], [1, 2, 1, "", "los"], [1, 2, 1, "", "point_ratio"]], "cshogi.gym_shogi": [[4, 0, 0, "-", "envs"]], "cshogi.gym_shogi.envs": [[4, 1, 1, "", "ShogiEnv"], [4, 1, 1, "", "ShogiVecEnv"], [4, 0, 0, "-", "shogi_env"], [4, 0, 0, "-", "shogi_vec_env"]], "cshogi.gym_shogi.envs.ShogiEnv": [[4, 3, 1, "", "action_space"], [4, 3, 1, "", "metadata"], [4, 3, 1, "", "observation_space"], [4, 2, 1, "", "render"], [4, 2, 1, "", "reset"], [4, 2, 1, "", "step"]], "cshogi.gym_shogi.envs.ShogiVecEnv": [[4, 3, 1, "", "metadata"], [4, 2, 1, "", "render"], [4, 2, 1, "", "reset"], [4, 2, 1, "", "step"]], "cshogi.gym_shogi.envs.shogi_env": [[4, 1, 1, "", "ShogiEnv"]], "cshogi.gym_shogi.envs.shogi_env.ShogiEnv": [[4, 3, 1, "", "metadata"], [4, 2, 1, "", "render"], [4, 2, 1, "", "reset"], [4, 2, 1, "", "step"]], "cshogi.gym_shogi.envs.shogi_vec_env": [[4, 1, 1, "", "ShogiVecEnv"]], "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv": [[4, 3, 1, "", "metadata"], [4, 2, 1, "", "render"], [4, 2, 1, "", "reset"], [4, 2, 1, "", "step"]], "cshogi.usi": [[5, 1, 1, "", "Engine"], [5, 1, 1, "", "InfoListener"], [5, 1, 1, "", "MultiPVListener"]], "cshogi.usi.Engine": [[5, 2, 1, "", "connect"], [5, 2, 1, "", "gameover"], [5, 2, 1, "", "go"], [5, 2, 1, "", "go_mate"], [5, 2, 1, "", "isready"], [5, 2, 1, "", "ponderhit"], [5, 2, 1, "", "position"], [5, 2, 1, "", "quit"], [5, 2, 1, "", "setoption"], [5, 2, 1, "", "stop"], [5, 2, 1, "", "usi"], [5, 2, 1, "", "usinewgame"]], "cshogi.usi.InfoListener": [[5, 6, 1, "", "bestmove"], [5, 6, 1, "", "info"], [5, 2, 1, "", "listen"], [5, 6, 1, "", "mate_score"], [5, 6, 1, "", "pv"], [5, 3, 1, "", "re_bestmove"], [5, 3, 1, "", "re_info"], [5, 6, 1, "", "score"]], "cshogi.usi.MultiPVListener": [[5, 6, 1, "", "info"], [5, 2, 1, "", "listen"], [5, 3, 1, "", "re_multipv"]], "cshogi.web": [[6, 0, 0, "-", "app"]], "cshogi.web.app": [[6, 1, 1, "", "Human"], [6, 4, 1, "", "colab"], [6, 4, 1, "", "match"], [6, 4, 1, "", "run"], [6, 4, 1, "", "usi_info_to_pv"]], "cshogi.web.app.Human": [[6, 2, 1, "", "go"], [6, 2, 1, "", "isready"], [6, 2, 1, "", "position"], [6, 2, 1, "", "quit"], [6, 2, 1, "", "usi"], [6, 2, 1, "", "usinewgame"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:attribute", "4": "py:function", "5": "py:exception", "6": "py:property"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "function", "Python function"], "5": ["py", "exception", "Python exception"], "6": ["py", "property", "Python property"]}, "titleterms": {"about": 0, "cshogi": [0, 1, 2, 3, 4, 5, 6, 7], "design": 0, "polici": 0, "handl": 0, "move": 0, "legal": 0, "check": 0, "coordin": 0, "system": 0, "piec": 0, "hand": 0, "packag": [1, 2, 3, 4, 5, 6], "modul": [1, 2, 3, 4, 5, 6], "content": [1, 2, 3, 4, 5, 6], "submodul": [1, 4, 6], "csa": 1, "ki2": 1, "kif": 1, "pgn": 1, "cli": 1, "elo": 1, "subpackag": [1, 3], "dlshogi": 2, "gym_shogi": [3, 4], "env": 4, "shogi_env": 4, "shogi_vec_env": 4, "usi": 5, "web": 6, "app": 6, "welcom": 7, "": 7, "document": 7, "introduct": 7, "refer": 7, "indic": 7, "tabl": 7, "instal": 8, "from": 8, "github": 8, "sourc": 8, "pypi": 8, "quickstart": 9, "basic": 9, "featur": 9}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1, "sphinx.ext.todo": 2, "sphinx": 57}, "alltitles": {"About cshogi": [[0, "about-cshogi"]], "Design Policy": [[0, "design-policy"]], "Handling of Moves": [[0, "handling-of-moves"]], "Legal Move Check": [[0, "legal-move-check"]], "Coordinate System": [[0, "coordinate-system"]], "Handling of Pieces": [[0, "handling-of-pieces"]], "Handling of Pieces in Hand": [[0, "handling-of-pieces-in-hand"]], "cshogi package": [[1, "cshogi-package"]], "Module contents": [[1, "module-cshogi"], [2, "module-cshogi.dlshogi"], [3, "module-cshogi.gym_shogi"], [4, "module-cshogi.gym_shogi.envs"], [5, "module-cshogi.usi"], [6, "module-cshogi.web"]], "Submodules": [[1, "submodules"], [4, "submodules"], [6, "submodules"]], "cshogi.CSA module": [[1, "module-cshogi.CSA"]], "cshogi.KI2 module": [[1, "module-cshogi.KI2"]], "cshogi.KIF module": [[1, "module-cshogi.KIF"]], "cshogi.PGN module": [[1, "module-cshogi.PGN"]], "cshogi.cli module": [[1, "module-cshogi.cli"]], "cshogi.elo module": [[1, "module-cshogi.elo"]], "Subpackages": [[1, "subpackages"], [3, "subpackages"]], "cshogi.dlshogi package": [[2, "cshogi-dlshogi-package"]], "cshogi.gym_shogi package": [[3, "cshogi-gym-shogi-package"]], "cshogi.gym_shogi.envs package": [[4, "cshogi-gym-shogi-envs-package"]], "cshogi.gym_shogi.envs.shogi_env module": [[4, "module-cshogi.gym_shogi.envs.shogi_env"]], "cshogi.gym_shogi.envs.shogi_vec_env module": [[4, "module-cshogi.gym_shogi.envs.shogi_vec_env"]], "cshogi.usi package": [[5, "cshogi-usi-package"]], "cshogi.web package": [[6, "cshogi-web-package"]], "cshogi.web.app module": [[6, "module-cshogi.web.app"]], "Welcome to cshogi\u2019s documentation!": [[7, "welcome-to-cshogi-s-documentation"]], "Introduction:": [[7, null]], "References:": [[7, null]], "Indices and tables": [[7, "indices-and-tables"]], "Installation": [[8, "installation"]], "Installation from GitHub Source": [[8, "installation-from-github-source"]], "Installation from PYPI": [[8, "installation-from-pypi"]], "Quickstart": [[9, "quickstart"]], "Basics": [[9, "basics"]], "Features": [[9, "features"]]}, "indexentries": {"board (class in cshogi)": [[1, "cshogi.Board"]], "dfpn (class in cshogi)": [[1, "cshogi.DfPn"]], "elo (class in cshogi.elo)": [[1, "cshogi.elo.Elo"]], "exporter (class in cshogi.csa)": [[1, "cshogi.CSA.Exporter"]], "exporter (class in cshogi.ki2)": [[1, "cshogi.KI2.Exporter"]], "exporter (class in cshogi.kif)": [[1, "cshogi.KIF.Exporter"]], "exporter (class in cshogi.pgn)": [[1, "cshogi.PGN.Exporter"]], "handycap_sfens (cshogi.ki2.parser attribute)": [[1, "cshogi.KI2.Parser.HANDYCAP_SFENS"]], "handycap_sfens (cshogi.kif.parser attribute)": [[1, "cshogi.KIF.Parser.HANDYCAP_SFENS"]], "legalmovelist (class in cshogi)": [[1, "cshogi.LegalMoveList"]], "move_re (cshogi.ki2.parser attribute)": [[1, "cshogi.KI2.Parser.MOVE_RE"]], "move_re (cshogi.kif.parser attribute)": [[1, "cshogi.KIF.Parser.MOVE_RE"]], "parser (class in cshogi.csa)": [[1, "cshogi.CSA.Parser"]], "parser (class in cshogi.ki2)": [[1, "cshogi.KI2.Parser"]], "parser (class in cshogi.kif)": [[1, "cshogi.KIF.Parser"]], "parserexception": [[1, "cshogi.KIF.ParserException"]], "pseudolegalmovelist (class in cshogi)": [[1, "cshogi.PseudoLegalMoveList"]], "result_re (cshogi.ki2.parser attribute)": [[1, "cshogi.KI2.Parser.RESULT_RE"]], "result_re (cshogi.kif.parser attribute)": [[1, "cshogi.KIF.Parser.RESULT_RE"]], "svgwrapper (class in cshogi)": [[1, "cshogi.SvgWrapper"]], "board_to_bod() (in module cshogi.kif)": [[1, "cshogi.KIF.board_to_bod"]], "book_key() (cshogi.board method)": [[1, "cshogi.Board.book_key"]], "book_key_after() (cshogi.board method)": [[1, "cshogi.Board.book_key_after"]], "close() (cshogi.csa.exporter method)": [[1, "cshogi.CSA.Exporter.close"]], "close() (cshogi.ki2.exporter method)": [[1, "cshogi.KI2.Exporter.close"]], "close() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.close"]], "close() (cshogi.pgn.exporter method)": [[1, "cshogi.PGN.Exporter.close"]], "comment (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.comment"]], "comments (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.comments"]], "copy() (cshogi.board method)": [[1, "cshogi.Board.copy"]], "csa_pos() (cshogi.board method)": [[1, "cshogi.Board.csa_pos"]], "cshogi": [[1, "module-cshogi"]], "cshogi.csa": [[1, "module-cshogi.CSA"]], "cshogi.ki2": [[1, "module-cshogi.KI2"]], "cshogi.kif": [[1, "module-cshogi.KIF"]], "cshogi.pgn": [[1, "module-cshogi.PGN"]], "cshogi.cli": [[1, "module-cshogi.cli"]], "cshogi.elo": [[1, "module-cshogi.elo"]], "diff() (cshogi.elo.elo method)": [[1, "cshogi.elo.Elo.diff"]], "draw_ratio() (cshogi.elo.elo method)": [[1, "cshogi.elo.Elo.draw_ratio"]], "drop_move() (cshogi.board method)": [[1, "cshogi.Board.drop_move"]], "elo_diff() (in module cshogi.elo)": [[1, "cshogi.elo.elo_diff"]], "end() (cshogi.ki2.exporter method)": [[1, "cshogi.KI2.Exporter.end"]], "end() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.end"]], "endgame (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.endgame"]], "endgame() (cshogi.csa.exporter method)": [[1, "cshogi.CSA.Exporter.endgame"]], "erf_inv() (in module cshogi.elo)": [[1, "cshogi.elo.erf_inv"]], "error_margin() (cshogi.elo.elo method)": [[1, "cshogi.elo.Elo.error_margin"]], "get_move() (cshogi.dfpn method)": [[1, "cshogi.DfPn.get_move"]], "get_pv() (cshogi.dfpn method)": [[1, "cshogi.DfPn.get_pv"]], "hand_piece_to_piece_type() (in module cshogi)": [[1, "cshogi.hand_piece_to_piece_type"]], "header() (cshogi.ki2.exporter method)": [[1, "cshogi.KI2.Exporter.header"]], "header() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.header"]], "history (cshogi.board attribute)": [[1, "cshogi.Board.history"]], "info() (cshogi.csa.exporter method)": [[1, "cshogi.CSA.Exporter.info"]], "info() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.info"]], "is_check() (cshogi.board method)": [[1, "cshogi.Board.is_check"]], "is_draw() (cshogi.board method)": [[1, "cshogi.Board.is_draw"]], "is_game_over() (cshogi.board method)": [[1, "cshogi.Board.is_game_over"]], "is_legal() (cshogi.board method)": [[1, "cshogi.Board.is_legal"]], "is_mate() (cshogi.board method)": [[1, "cshogi.Board.is_mate"]], "is_nyugyoku() (cshogi.board method)": [[1, "cshogi.Board.is_nyugyoku"]], "is_ok() (cshogi.board method)": [[1, "cshogi.Board.is_ok"]], "is_pseudo_legal() (cshogi.board method)": [[1, "cshogi.Board.is_pseudo_legal"]], "king_square() (cshogi.board method)": [[1, "cshogi.Board.king_square"]], "legal_moves (cshogi.board attribute)": [[1, "cshogi.Board.legal_moves"]], "los() (cshogi.elo.elo method)": [[1, "cshogi.elo.Elo.los"]], "main() (in module cshogi.cli)": [[1, "cshogi.cli.main"]], "mate_move() (cshogi.board method)": [[1, "cshogi.Board.mate_move"]], "mate_move_in_1ply() (cshogi.board method)": [[1, "cshogi.Board.mate_move_in_1ply"]], "module": [[1, "module-cshogi"], [1, "module-cshogi.CSA"], [1, "module-cshogi.KI2"], [1, "module-cshogi.KIF"], [1, "module-cshogi.PGN"], [1, "module-cshogi.cli"], [1, "module-cshogi.elo"], [2, "module-cshogi.dlshogi"], [3, "module-cshogi.gym_shogi"], [4, "module-cshogi.gym_shogi.envs"], [4, "module-cshogi.gym_shogi.envs.shogi_env"], [4, "module-cshogi.gym_shogi.envs.shogi_vec_env"], [5, "module-cshogi.usi"], [6, "module-cshogi.web"], [6, "module-cshogi.web.app"]], "move() (cshogi.board method)": [[1, "cshogi.Board.move"]], "move() (cshogi.csa.exporter method)": [[1, "cshogi.CSA.Exporter.move"]], "move() (cshogi.ki2.exporter method)": [[1, "cshogi.KI2.Exporter.move"]], "move() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.move"]], "move16() (in module cshogi)": [[1, "cshogi.move16"]], "move16_from_psv() (in module cshogi)": [[1, "cshogi.move16_from_psv"]], "move16_to_psv() (in module cshogi)": [[1, "cshogi.move16_to_psv"]], "move_cap() (in module cshogi)": [[1, "cshogi.move_cap"]], "move_drop_hand_piece() (in module cshogi)": [[1, "cshogi.move_drop_hand_piece"]], "move_from() (in module cshogi)": [[1, "cshogi.move_from"]], "move_from_csa() (cshogi.board method)": [[1, "cshogi.Board.move_from_csa"]], "move_from_move16() (cshogi.board method)": [[1, "cshogi.Board.move_from_move16"]], "move_from_piece_type() (in module cshogi)": [[1, "cshogi.move_from_piece_type"]], "move_from_psv() (cshogi.board method)": [[1, "cshogi.Board.move_from_psv"]], "move_from_usi() (cshogi.board method)": [[1, "cshogi.Board.move_from_usi"]], "move_is_drop() (in module cshogi)": [[1, "cshogi.move_is_drop"]], "move_is_promotion() (in module cshogi)": [[1, "cshogi.move_is_promotion"]], "move_number (cshogi.board attribute)": [[1, "cshogi.Board.move_number"]], "move_rotate() (in module cshogi)": [[1, "cshogi.move_rotate"]], "move_to() (in module cshogi)": [[1, "cshogi.move_to"]], "move_to_bod() (in module cshogi.kif)": [[1, "cshogi.KIF.move_to_bod"]], "move_to_csa() (in module cshogi)": [[1, "cshogi.move_to_csa"]], "move_to_ki2() (in module cshogi.ki2)": [[1, "cshogi.KI2.move_to_ki2"]], "move_to_kif() (in module cshogi.kif)": [[1, "cshogi.KIF.move_to_kif"]], "move_to_san() (in module cshogi.pgn)": [[1, "cshogi.PGN.move_to_san"]], "move_to_usi() (in module cshogi)": [[1, "cshogi.move_to_usi"]], "moves (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.moves"]], "movetext() (cshogi.pgn.exporter method)": [[1, "cshogi.PGN.Exporter.movetext"]], "names (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.names"]], "open() (cshogi.csa.exporter method)": [[1, "cshogi.CSA.Exporter.open"]], "open() (cshogi.ki2.exporter method)": [[1, "cshogi.KI2.Exporter.open"]], "open() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.open"]], "open() (cshogi.pgn.exporter method)": [[1, "cshogi.PGN.Exporter.open"]], "opponent() (in module cshogi)": [[1, "cshogi.opponent"]], "parse_csa_file() (cshogi.csa.parser method)": [[1, "cshogi.CSA.Parser.parse_csa_file"]], "parse_csa_str() (cshogi.csa.parser method)": [[1, "cshogi.CSA.Parser.parse_csa_str"]], "parse_file() (cshogi.csa.parser static method)": [[1, "cshogi.CSA.Parser.parse_file"]], "parse_file() (cshogi.ki2.parser static method)": [[1, "cshogi.KI2.Parser.parse_file"]], "parse_file() (cshogi.kif.parser static method)": [[1, "cshogi.KIF.Parser.parse_file"]], "parse_move_str() (cshogi.ki2.parser static method)": [[1, "cshogi.KI2.Parser.parse_move_str"]], "parse_move_str() (cshogi.kif.parser static method)": [[1, "cshogi.KIF.Parser.parse_move_str"]], "parse_pieces_in_hand() (cshogi.ki2.parser static method)": [[1, "cshogi.KI2.Parser.parse_pieces_in_hand"]], "parse_pieces_in_hand() (cshogi.kif.parser static method)": [[1, "cshogi.KIF.Parser.parse_pieces_in_hand"]], "parse_str() (cshogi.csa.parser static method)": [[1, "cshogi.CSA.Parser.parse_str"]], "parse_str() (cshogi.ki2.parser static method)": [[1, "cshogi.KI2.Parser.parse_str"]], "parse_str() (cshogi.kif.parser static method)": [[1, "cshogi.KIF.Parser.parse_str"]], "peek() (cshogi.board method)": [[1, "cshogi.Board.peek"]], "phi_inv() (in module cshogi.elo)": [[1, "cshogi.elo.phi_inv"]], "piece() (cshogi.board method)": [[1, "cshogi.Board.piece"]], "piece_planes() (cshogi.board method)": [[1, "cshogi.Board.piece_planes"]], "piece_planes_rotate() (cshogi.board method)": [[1, "cshogi.Board.piece_planes_rotate"]], "piece_to_piece_type() (in module cshogi)": [[1, "cshogi.piece_to_piece_type"]], "piece_type() (cshogi.board method)": [[1, "cshogi.Board.piece_type"]], "pieces (cshogi.board attribute)": [[1, "cshogi.Board.pieces"]], "pieces_in_hand (cshogi.board attribute)": [[1, "cshogi.Board.pieces_in_hand"]], "point_ratio() (cshogi.elo.elo method)": [[1, "cshogi.elo.Elo.point_ratio"]], "pop() (cshogi.board method)": [[1, "cshogi.Board.pop"]], "pop_pass() (cshogi.board method)": [[1, "cshogi.Board.pop_pass"]], "pseudo_legal_move_is_legal() (cshogi.board method)": [[1, "cshogi.Board.pseudo_legal_move_is_legal"]], "pseudo_legal_moves (cshogi.board attribute)": [[1, "cshogi.Board.pseudo_legal_moves"]], "push() (cshogi.board method)": [[1, "cshogi.Board.push"]], "push_csa() (cshogi.board method)": [[1, "cshogi.Board.push_csa"]], "push_move16() (cshogi.board method)": [[1, "cshogi.Board.push_move16"]], "push_pass() (cshogi.board method)": [[1, "cshogi.Board.push_pass"]], "push_psv() (cshogi.board method)": [[1, "cshogi.Board.push_psv"]], "push_usi() (cshogi.board method)": [[1, "cshogi.Board.push_usi"]], "ratings (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.ratings"]], "reset() (cshogi.board method)": [[1, "cshogi.Board.reset"]], "scores (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.scores"]], "search() (cshogi.dfpn method)": [[1, "cshogi.DfPn.search"]], "search_andnode() (cshogi.dfpn method)": [[1, "cshogi.DfPn.search_andnode"]], "searched_node (cshogi.dfpn attribute)": [[1, "cshogi.DfPn.searched_node"]], "sec_to_time() (in module cshogi.kif)": [[1, "cshogi.KIF.sec_to_time"]], "set_draw_ply() (cshogi.dfpn method)": [[1, "cshogi.DfPn.set_draw_ply"]], "set_hcp() (cshogi.board method)": [[1, "cshogi.Board.set_hcp"]], "set_max_depth() (cshogi.dfpn method)": [[1, "cshogi.DfPn.set_max_depth"]], "set_max_search_node() (cshogi.dfpn method)": [[1, "cshogi.DfPn.set_max_search_node"]], "set_pieces() (cshogi.board method)": [[1, "cshogi.Board.set_pieces"]], "set_position() (cshogi.board method)": [[1, "cshogi.Board.set_position"]], "set_psfen() (cshogi.board method)": [[1, "cshogi.Board.set_psfen"]], "set_sfen() (cshogi.board method)": [[1, "cshogi.Board.set_sfen"]], "sfen (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.sfen"]], "sfen() (cshogi.board method)": [[1, "cshogi.Board.sfen"]], "stop() (cshogi.dfpn method)": [[1, "cshogi.DfPn.stop"]], "tag_pair() (cshogi.pgn.exporter method)": [[1, "cshogi.PGN.Exporter.tag_pair"]], "times (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.times"]], "to_bod() (cshogi.board method)": [[1, "cshogi.Board.to_bod"]], "to_csa() (in module cshogi)": [[1, "cshogi.to_csa"]], "to_hcp() (cshogi.board method)": [[1, "cshogi.Board.to_hcp"]], "to_psfen() (cshogi.board method)": [[1, "cshogi.Board.to_psfen"]], "to_score() (in module cshogi.cli)": [[1, "cshogi.cli.to_score"]], "to_svg() (cshogi.board method)": [[1, "cshogi.Board.to_svg"]], "to_usi() (in module cshogi)": [[1, "cshogi.to_usi"]], "turn (cshogi.board attribute)": [[1, "cshogi.Board.turn"]], "usi_info_to_csa_comment() (in module cshogi.cli)": [[1, "cshogi.cli.usi_info_to_csa_comment"]], "usi_info_to_score() (in module cshogi.cli)": [[1, "cshogi.cli.usi_info_to_score"]], "var_info (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.var_info"]], "version (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.version"]], "win (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.win"]], "zobrist_hash() (cshogi.board method)": [[1, "cshogi.Board.zobrist_hash"]], "cshogi.dlshogi": [[2, "module-cshogi.dlshogi"]], "make_input_features() (in module cshogi.dlshogi)": [[2, "cshogi.dlshogi.make_input_features"]], "make_move_label() (in module cshogi.dlshogi)": [[2, "cshogi.dlshogi.make_move_label"]], "cshogi.gym_shogi": [[3, "module-cshogi.gym_shogi"]], "shogienv (class in cshogi.gym_shogi.envs)": [[4, "cshogi.gym_shogi.envs.ShogiEnv"]], "shogienv (class in cshogi.gym_shogi.envs.shogi_env)": [[4, "cshogi.gym_shogi.envs.shogi_env.ShogiEnv"]], "shogivecenv (class in cshogi.gym_shogi.envs)": [[4, "cshogi.gym_shogi.envs.ShogiVecEnv"]], "shogivecenv (class in cshogi.gym_shogi.envs.shogi_vec_env)": [[4, "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv"]], "action_space (cshogi.gym_shogi.envs.shogienv attribute)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.action_space"]], "cshogi.gym_shogi.envs": [[4, "module-cshogi.gym_shogi.envs"]], "cshogi.gym_shogi.envs.shogi_env": [[4, "module-cshogi.gym_shogi.envs.shogi_env"]], "cshogi.gym_shogi.envs.shogi_vec_env": [[4, "module-cshogi.gym_shogi.envs.shogi_vec_env"]], "metadata (cshogi.gym_shogi.envs.shogienv attribute)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.metadata"]], "metadata (cshogi.gym_shogi.envs.shogivecenv attribute)": [[4, "cshogi.gym_shogi.envs.ShogiVecEnv.metadata"]], "metadata (cshogi.gym_shogi.envs.shogi_env.shogienv attribute)": [[4, "cshogi.gym_shogi.envs.shogi_env.ShogiEnv.metadata"]], "metadata (cshogi.gym_shogi.envs.shogi_vec_env.shogivecenv attribute)": [[4, "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv.metadata"]], "observation_space (cshogi.gym_shogi.envs.shogienv attribute)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.observation_space"]], "render() (cshogi.gym_shogi.envs.shogienv method)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.render"]], "render() (cshogi.gym_shogi.envs.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.ShogiVecEnv.render"]], "render() (cshogi.gym_shogi.envs.shogi_env.shogienv method)": [[4, "cshogi.gym_shogi.envs.shogi_env.ShogiEnv.render"]], "render() (cshogi.gym_shogi.envs.shogi_vec_env.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv.render"]], "reset() (cshogi.gym_shogi.envs.shogienv method)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.reset"]], "reset() (cshogi.gym_shogi.envs.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.ShogiVecEnv.reset"]], "reset() (cshogi.gym_shogi.envs.shogi_env.shogienv method)": [[4, "cshogi.gym_shogi.envs.shogi_env.ShogiEnv.reset"]], "reset() (cshogi.gym_shogi.envs.shogi_vec_env.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv.reset"]], "step() (cshogi.gym_shogi.envs.shogienv method)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.step"]], "step() (cshogi.gym_shogi.envs.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.ShogiVecEnv.step"]], "step() (cshogi.gym_shogi.envs.shogi_env.shogienv method)": [[4, "cshogi.gym_shogi.envs.shogi_env.ShogiEnv.step"]], "step() (cshogi.gym_shogi.envs.shogi_vec_env.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv.step"]], "engine (class in cshogi.usi)": [[5, "cshogi.usi.Engine"]], "infolistener (class in cshogi.usi)": [[5, "cshogi.usi.InfoListener"]], "multipvlistener (class in cshogi.usi)": [[5, "cshogi.usi.MultiPVListener"]], "bestmove (cshogi.usi.infolistener property)": [[5, "cshogi.usi.InfoListener.bestmove"]], "connect() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.connect"]], "cshogi.usi": [[5, "module-cshogi.usi"]], "gameover() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.gameover"]], "go() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.go"]], "go_mate() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.go_mate"]], "info (cshogi.usi.infolistener property)": [[5, "cshogi.usi.InfoListener.info"]], "info (cshogi.usi.multipvlistener property)": [[5, "cshogi.usi.MultiPVListener.info"]], "isready() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.isready"]], "listen() (cshogi.usi.infolistener method)": [[5, "cshogi.usi.InfoListener.listen"]], "listen() (cshogi.usi.multipvlistener method)": [[5, "cshogi.usi.MultiPVListener.listen"]], "mate_score (cshogi.usi.infolistener property)": [[5, "cshogi.usi.InfoListener.mate_score"]], "ponderhit() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.ponderhit"]], "position() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.position"]], "pv (cshogi.usi.infolistener property)": [[5, "cshogi.usi.InfoListener.pv"]], "quit() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.quit"]], "re_bestmove (cshogi.usi.infolistener attribute)": [[5, "cshogi.usi.InfoListener.re_bestmove"]], "re_info (cshogi.usi.infolistener attribute)": [[5, "cshogi.usi.InfoListener.re_info"]], "re_multipv (cshogi.usi.multipvlistener attribute)": [[5, "cshogi.usi.MultiPVListener.re_multipv"]], "score (cshogi.usi.infolistener property)": [[5, "cshogi.usi.InfoListener.score"]], "setoption() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.setoption"]], "stop() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.stop"]], "usi() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.usi"]], "usinewgame() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.usinewgame"]], "human (class in cshogi.web.app)": [[6, "cshogi.web.app.Human"]], "colab() (in module cshogi.web.app)": [[6, "cshogi.web.app.colab"]], "cshogi.web": [[6, "module-cshogi.web"]], "cshogi.web.app": [[6, "module-cshogi.web.app"]], "go() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.go"]], "isready() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.isready"]], "match() (in module cshogi.web.app)": [[6, "cshogi.web.app.match"]], "position() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.position"]], "quit() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.quit"]], "run() (in module cshogi.web.app)": [[6, "cshogi.web.app.run"]], "usi() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.usi"]], "usi_info_to_pv() (in module cshogi.web.app)": [[6, "cshogi.web.app.usi_info_to_pv"]], "usinewgame() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.usinewgame"]]}})
\ No newline at end of file
+Search.setIndex({"docnames": ["about", "cshogi", "cshogi.dlshogi", "cshogi.gym_shogi", "cshogi.gym_shogi.envs", "cshogi.usi", "cshogi.web", "index", "installation", "quickstart"], "filenames": ["about.rst", "cshogi.rst", "cshogi.dlshogi.rst", "cshogi.gym_shogi.rst", "cshogi.gym_shogi.envs.rst", "cshogi.usi.rst", "cshogi.web.rst", "index.rst", "installation.rst", "quickstart.rst"], "titles": ["About cshogi", "cshogi package", "cshogi.dlshogi package", "cshogi.gym_shogi package", "cshogi.gym_shogi.envs package", "cshogi.usi package", "cshogi.web package", "Welcome to cshogi\u2019s documentation!", "Installation", "Quickstart"], "terms": {"python": [0, 7], "shogi": [0, 1, 4, 5, 6, 7], "i": [0, 1, 4, 5, 6, 7, 9], "an": [0, 1, 2, 4, 5, 6, 7, 9], "extrem": 0, "us": [0, 1, 2, 6, 8], "librari": [0, 7], "can": [0, 1, 4, 8, 9], "its": [0, 1, 5], "slow": 0, "drawback": 0, "depend": [0, 8], "applic": 0, "It": [0, 1], "describ": 0, "offici": 0, "websit": 0, "well": 0, "purpos": 0, "simpli": 0, "abstractli": 0, "rather": 0, "than": [0, 8], "focus": 0, "speed": 0, "howev": 0, "becom": 0, "bottleneck": 0, "when": [0, 1], "try": 0, "machin": [0, 7], "learn": [0, 7], "therefor": 0, "decid": 0, "creat": [0, 1, 7, 9], "oper": 0, "quickli": 0, "possibl": 0, "from": [0, 1, 2, 5, 6, 9], "insid": 0, "board": [0, 1, 2, 4, 6, 7, 9], "repres": [0, 1, 2, 4, 5], "bitboard": 0, "": [0, 1, 5, 9], "bit": [0, 1], "ar": [0, 8, 9], "veri": 0, "improv": 0, "expect": 0, "develop": 0, "part": 0, "c": [0, 1, 8], "make": [0, 1, 2, 4, 5, 7, 9], "callabl": [0, 1, 5], "For": 0, "thi": [0, 1, 4], "reason": [0, 1], "aperi": [0, 1, 9], "sourc": [0, 1, 2, 5, 6], "code": [0, 1], "wai": 0, "call": 0, "numer": [0, 9], "valu": [0, 1, 5], "In": [0, 1], "class": [0, 1, 4, 5, 6], "conveni": 0, "method": 0, "provid": [0, 5, 7], "thei": [0, 9], "made": [0, 1, 4], "emphasi": 0, "instead": 0, "sever": 0, "helper": [0, 9], "prepar": 0, "move_to": [0, 1, 7], "move_from": [0, 1, 7], "move_cap": [0, 1, 7], "move_drop_hand_piec": [0, 1, 7], "move_is_promot": [0, 1, 7], "move_is_drop": [0, 1, 7], "move_to_usi": [0, 1, 7, 9], "move_to_csa": [0, 1, 7, 9], "appli": [0, 1], "perform": [0, 1], "If": [0, 1, 8], "incorrect": [0, 1], "pass": [0, 1], "data": [0, 1], "mai": [0, 5], "corrupt": 0, "program": 0, "termin": 0, "abnorm": 0, "due": [0, 1], "access": [0, 6], "violat": 0, "other": 0, "issu": 0, "The": [0, 1, 4, 5, 6], "compli": 0, "number": [0, 1, 4, 5, 6, 9], "0": [0, 1, 5, 8, 9], "80": 0, "care": 0, "correspond": [0, 1], "differ": [0, 1], "pleas": 0, "constant": 0, "like": 0, "a1": 0, "a2": 0, "directli": 0, "alphabet": 0, "rank": 0, "file": [0, 1, 6], "also": 0, "Be": 0, "piece_types_with_non": 0, "piece_typ": [0, 1, 7], "defin": [0, 1], "follow": [0, 1, 8], "none": [0, 1, 4, 5, 6], "pawn": 0, "lanc": 0, "knight": 0, "silver": 0, "bishop": 0, "rook": 0, "gold": 0, "king": [0, 1], "prom_pawn": 0, "prom_lanc": 0, "prom_knight": 0, "prom_silv": 0, "prom_bishop": 0, "prom_rook": 0, "rang": 0, "15": 0, "bpawn": [0, 1], "blanc": 0, "bknight": 0, "bsilver": 0, "bbishop": 0, "brook": 0, "bgold": 0, "bking": 0, "bprom_pawn": 0, "bprom_lanc": 0, "bprom_knight": 0, "bprom_silv": 0, "bprom_bishop": 0, "bprom_rook": 0, "notus": 0, "wpawn": 0, "wlanc": 0, "wknight": 0, "wsilver": 0, "wbishop": 0, "wrook": 0, "wgold": 0, "wking": 0, "wprom_pawn": 0, "wprom_lanc": 0, "wprom_knight": 0, "wprom_silv": 0, "wprom_bishop": 0, "wprom_rook": 0, "31": 0, "hand_piec": 0, "return": [0, 1, 2, 4, 5], "pieces_in_hand": [0, 1, 7], "order": 0, "hpawn": [0, 1], "hlanc": 0, "hknight": 0, "hsilver": 0, "hgold": 0, "hbishop": 0, "hrook": 0, "7": [0, 9], "base": [1, 4, 5, 6], "object": [1, 2, 4, 5, 6], "paramet": [1, 2, 4, 5, 6], "sfen": [1, 4, 5, 6, 7, 9], "str": [1, 4, 5, 6], "option": [1, 4, 5, 6], "A": [1, 2, 4, 5], "string": [1, 4, 5], "format": [1, 7, 9], "exampl": [1, 5, 7, 9], "initi": [1, 4, 5, 6], "lnsgkgsnl": 1, "1r5b1": 1, "ppppppppp": 1, "9": [1, 2, 5, 9], "1b5r1": 1, "b": [1, 9], "1": [1, 9], "board2": 1, "book_kei": [1, 7], "get": [1, 5], "kei": 1, "open": [1, 7], "book": 1, "current": [1, 2, 4, 5], "state": [1, 2, 4, 5], "type": [1, 4, 5], "long": 1, "book_key_aft": [1, 7], "after": [1, 5], "specif": 1, "move": [1, 2, 4, 5, 6, 7, 9], "int": [1, 4, 5, 6], "result": [1, 5], "copi": [1, 7], "new": 1, "same": 1, "csa_po": [1, 7], "posit": [1, 5, 6, 7, 9], "comput": 1, "associ": 1, "drop_mov": [1, 7], "drop": 1, "to_squar": 1, "destin": 1, "squar": 1, "index": [1, 7], "drop_piece_typ": 1, "piec": [1, 7], "integ": [1, 2], "histori": [1, 7], "game": [1, 2, 4, 5, 6, 9], "list": [1, 4, 5, 9], "is_check": [1, 7, 9], "determin": [1, 9], "check": [1, 5, 9], "true": [1, 5, 9], "fals": [1, 5, 6, 9], "otherwis": [1, 4], "bool": [1, 4, 5], "is_draw": [1, 7, 9], "whether": [1, 5], "draw": [1, 4, 6, 9], "anoth": 1, "special": 1, "condit": [1, 5], "ply": 1, "up": 1, "default": [1, 4, 5, 6], "maximum": 1, "statu": [1, 4], "could": 1, "one": [1, 4, 9], "repetition_draw": [1, 9], "case": 1, "repeat": 1, "repetition_win": 1, "win": [1, 7], "consecut": 1, "repetition_los": 1, "loss": 1, "repetition_superior": 1, "superior": 1, "repetition_inferior": 1, "inferior": 1, "not_repetit": 1, "abov": 1, "enum": 1, "is_game_ov": [1, 7, 9], "over": [1, 5], "is_leg": [1, 7], "legal": [1, 7, 9], "is_mat": [1, 7], "mate": [1, 5], "met": 1, "given": [1, 2, 6], "even": 1, "is_nyugyoku": [1, 7, 9], "accord": 1, "ny\u016bgyoku": 1, "declar": [1, 9], "rule": 1, "27": 1, "point": 1, "enter": 1, "is_ok": [1, 7], "valid": 1, "is_pseudo_leg": [1, 7], "pseudo": 1, "king_squar": [1, 7], "color": [1, 2], "either": 1, "black": [1, 5], "white": [1, 5], "specifi": [1, 4], "legal_mov": [1, 7, 9], "gener": [1, 2, 7, 9], "iter": 1, "yield": 1, "legalmovelist": [1, 7], "mate_mov": [1, 7], "find": 1, "odd": 1, "should": 1, "greater": 1, "equal": 1, "3": [1, 9], "mate_move_in_1pli": [1, 7], "from_squar": 1, "start": [1, 5, 7, 9], "promot": 1, "involv": 1, "move_from_csa": [1, 7, 9], "move_from_move16": [1, 7], "16": 1, "move16": [1, 7], "unsign": 1, "short": 1, "move_from_psv": [1, 7], "psv": 1, "move_from_usi": [1, 7, 9], "usi": [1, 6, 7, 9], "move_numb": [1, 7], "peek": [1, 7], "last": 1, "sq": 1, "piece_plan": [1, 7], "plane": 1, "store": 1, "ndarrai": [1, 2, 4], "featur": [1, 2], "np": [1, 4, 9], "dimens": 1, "features_num": 1, "dtype": [1, 9], "float32": 1, "where": 1, "len": 1, "2": [1, 9], "sum": 1, "max_pieces_in_hand": 1, "piece_planes_rot": [1, 7], "180": 1, "degre": 1, "rotat": 1, "arrai": [1, 2], "hand": 1, "both": 1, "player": [1, 6], "tupl": [1, 4, 5], "contain": [1, 4, 5], "pop": [1, 7, 9], "pop_pass": [1, 7], "pseudo_legal_move_is_leg": [1, 7], "pseudo_legal_mov": [1, 7], "pseudolegalmovelist": [1, 7], "push": [1, 7], "each": [1, 4, 6], "ha": 1, "mean": 1, "xxxxxxxx": 1, "x1111111": 1, "xx111111": 1, "1xxxxxxx": 1, "piecetyp": 1, "squarenum": 1, "x1xxxxxx": 1, "flag": [1, 4], "xxxx1111": 1, "1111xxxx": 1, "captur": [1, 5], "encod": 1, "push_csa": [1, 7], "invalid": 1, "push_move16": [1, 7], "lower": [1, 8], "inget": 1, "push_pass": [1, 7], "push_psv": [1, 7], "which": 1, "yaneura": [1, 9], "push_usi": [1, 7, 9], "univers": [1, 5], "interfac": [1, 4, 5, 6], "reset": [1, 3, 4, 5, 7], "set_hcp": [1, 7, 9], "set": [1, 2, 5], "huffmancodedpo": [1, 9], "hcp": [1, 4, 9], "compress": [1, 9], "rais": 1, "runtimeerror": 1, "fromfil": [1, 9], "hcpfile": 1, "asarrai": 1, "set_piec": [1, 7], "edit": 1, "pieces_src": 1, "pieces_in_hand_src": 1, "pieces_dst": 1, "g1": 1, "f1": 1, "c1": 1, "pieces_in_hand_dst": 1, "board_dst": 1, "set_posit": [1, 7], "startpo": [1, 5, 6], "2g2f": [1, 9], "set_psfen": [1, 7, 9], "packedsfen": 1, "psfen": [1, 9], "psfenfil": 1, "set_sfen": [1, 7], "forsyth": 1, "edward": 1, "notat": 1, "to_bod": [1, 7], "convert": [1, 9], "diagram": 1, "bod": 1, "to_hcp": [1, 7, 9], "to_psfen": [1, 7], "to_svg": [1, 7], "svg": [1, 4], "represent": [1, 4, 9], "lastmov": 1, "ani": [1, 4], "scale": 1, "float": [1, 4], "factor": 1, "svgwrapper": [1, 4, 7], "turn": [1, 7], "first": [1, 2, 6, 8], "second": [1, 2, 6], "zobrist_hash": [1, 7], "calcul": 1, "zobrist": 1, "hash": 1, "64": 1, "dfpn": [1, 7], "search": [1, 5, 7], "df": 1, "pn": 1, "algorithm": 1, "depth": 1, "node": [1, 5, 6], "draw_pli": 1, "pli": 1, "consid": 1, "get_mov": [1, 7], "found": [1, 5], "get_pv": [1, 7], "princip": [1, 5], "variat": [1, 5], "pv": [1, 5], "sequenc": 1, "checkmat": [1, 5], "search_andnod": [1, 7], "AND": 1, "searched_nod": [1, 7], "set_draw_pli": [1, 7], "set_max_depth": [1, 7], "max_depth": 1, "set_max_search_nod": [1, 7], "max_search_nod": 1, "stop": [1, 5, 7], "hand_piece_to_piece_typ": [1, 7], "identifi": 1, "hp": 1, "typic": 1, "move16_from_psv": [1, 7], "move16_to_psv": [1, 7], "extract": 1, "move_from_piece_typ": [1, 7], "move_rot": [1, 7], "oppon": [1, 7], "piece_to_piece_typ": [1, 7], "p": [1, 9], "to_csa": [1, 7], "byte": 1, "to_usi": [1, 7], "export": [1, 7], "path": [1, 6], "append": 1, "handl": [1, 5, 9], "close": [1, 7], "endgam": [1, 7], "time": [1, 5, 6, 7], "write": 1, "taken": 1, "info": [1, 5, 6, 7], "init_board": 1, "name": [1, 5, 6, 7], "var_info": [1, 7], "comment": [1, 7], "version": [1, 7, 8], "inform": [1, 5], "dict": [1, 4, 5, 6], "addit": [1, 8], "variabl": 1, "about": [1, 7], "sep": 1, "n": 1, "separ": 1, "charact": 1, "newlin": 1, "parser": [1, 7], "pars": 1, "record": 1, "standard": 1, "parse_csa_fil": [1, 7], "parse_csa_str": [1, 7], "csa_str": 1, "static": 1, "parse_fil": [1, 7], "parse_str": [1, 7], "more": [1, 9], "rate": [1, 7], "score": [1, 5, 7], "dictionari": [1, 5, 6], "variou": 1, "black_win": 1, "white_win": 1, "written": 1, "end": [1, 7, 9], "e": 1, "g": 1, "toryo": 1, "sennichit": 1, "header": [1, 7], "starttim": 1, "includ": 1, "date": 1, "first_play": 1, "second_play": 1, "datetim": 1, "japanes": 1, "handycap_sfen": [1, 7], "\u305d\u306e\u4ed6": 1, "\u4e09\u679a\u843d\u3061": 1, "lnsgkgsn1": 1, "w": [1, 9], "\u4e8c\u679a\u843d\u3061": 1, "\u4e94\u679a\u843d\u3061": 1, "2sgkgsn1": 1, "\u516b\u679a\u843d\u3061": 1, "3gkg3": 1, "\u516d\u679a\u843d\u3061": 1, "2sgkgs2": 1, "\u5341\u679a\u843d\u3061": 1, "4k4": 1, "\u53f3\u9999\u843d\u3061": 1, "1nsgkgsnl": 1, "\u56db\u679a\u843d\u3061": 1, "1nsgkgsn1": 1, "\u5de6\u4e94\u679a\u843d\u3061": 1, "1nsgkgs2": 1, "\u5e73\u624b": 1, "\u89d2\u843d\u3061": 1, "1r7": 1, "\u98db\u8eca\u843d\u3061": 1, "7b1": 1, "\u98db\u9999\u843d\u3061": 1, "\u9999\u843d\u3061": 1, "move_r": [1, 7], "re": [1, 5], "compil": [1, 5, 8], "\uff11\uff12\uff13\uff14\uff15\uff16\uff17\uff18\uff19": 1, "\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d": 1, "\u540c": 1, "u3000": 1, "\u6b69\u9999\u6842\u9280\u91d1\u89d2\u98db\u7389\u3068\u674f\u572d\u5168\u99ac\u9f8d": 1, "\u5de6": 1, "\u76f4": 1, "\u53f3": 1, "\u4e0a": 1, "\u5bc4": 1, "\u5f15": 1, "\u6253": 1, "\u6210": 1, "\u4e0d\u6210": 1, "result_r": [1, 7], "d": 1, "\u624b\u3067": 1, "\u5148": 1, "\u4e0b": 1, "\u5f8c": 1, "\u624b\u306e": 1, "\u52dd\u3061": 1, "\u5165\u7389\u52dd\u3061": 1, "\u53cd\u5247\u52dd\u3061": 1, "\u53cd\u5247\u8ca0\u3051": 1, "\u5343\u65e5\u624b": 1, "\u6301\u5c06\u68cb": 1, "\u4e2d\u65ad": 1, "instanc": [1, 4], "all": [1, 4, 5], "parserexcept": [1, 7], "error": 1, "parse_move_str": [1, 7], "line": [1, 5], "them": [1, 7, 9], "parse_pieces_in_hand": [1, 7], "target": 1, "descript": 1, "kif_str": 1, "move_to_ki2": [1, 7], "sec": 1, "sec_sum": 1, "resign": 1, "spent": 1, "total": 1, "dure": 1, "handicap": 1, "relat": [1, 5], "so": 1, "far": 1, "\u6295\u4e86": 1, "\u8a70\u307f": 1, "\u5207\u308c\u8ca0\u3051": 1, "z": 1, "except": 1, "board_to_bod": [1, 7], "move_to_bod": [1, 7], "move_to_kif": [1, 7], "prev_mov": 1, "sec_to_tim": [1, 7], "portabl": 1, "exist": 1, "movetext": [1, 7], "text": [1, 9], "section": 1, "actual": 1, "tag_pair": [1, 7], "event": 1, "site": 1, "round": 1, "tag": 1, "pair": 1, "metadata": [1, 3, 4], "move_to_san": [1, 7], "main": [1, 7, 9], "engine1": [1, 6], "engine2": [1, 6], "options1": [1, 6], "options2": [1, 6], "mate_win": 1, "byoyomi": [1, 5, 6], "inc": [1, 6], "256": [1, 6], "ponder": [1, 5, 6], "no_swap": 1, "opening_mov": 1, "24": 1, "opening_se": 1, "opening_index": 1, "keep_process": 1, "multi_csa": 1, "no_pgn_mov": 1, "is_displai": 1, "debug": [1, 5], "print_summari": 1, "callback": [1, 5], "execut": 1, "seri": 1, "between": [1, 6, 9], "two": [1, 6], "engin": [1, 5, 6, 9], "plai": [1, 5, 9], "threshold": 1, "fall": 1, "below": [1, 7, 9], "neg": 1, "millisecond": [1, 5, 6], "control": [1, 5, 6, 9], "increment": [1, 5, 6], "per": [1, 5], "befor": [1, 6], "disabl": 1, "swap": 1, "seed": 1, "random": 1, "shuffl": 1, "keep": 1, "process": 1, "run": [1, 6], "complet": 1, "multi": 1, "omit": 1, "displai": [1, 7, 9], "enabl": [1, 5], "mode": [1, 4, 5], "print": [1, 5, 9], "summari": 1, "match": [1, 6, 9], "function": [1, 9], "statist": 1, "to_scor": [1, 7], "m": 1, "usi_info_to_csa_com": [1, 7], "usi_info_to_scor": [1, 7], "diff": [1, 7], "draw_ratio": [1, 7], "ratio": 1, "error_margin": [1, 7], "margin": 1, "lo": [1, 7], "likelihood": 1, "percentag": 1, "point_ratio": [1, 7], "elo_diff": [1, 7], "erf_inv": [1, 7], "x": 1, "phi_inv": [1, 7], "dlshogi": [1, 7], "make_input_featur": [1, 2], "make_move_label": [1, 2], "gym_shogi": [1, 7], "env": [1, 3], "shogi_env": [1, 3], "shogi_vec_env": [1, 3], "connect": [1, 5], "gameov": [1, 5], "go": [1, 5, 6, 9], "go_mat": [1, 5], "isreadi": [1, 5, 6, 9], "ponderhit": [1, 5], "quit": [1, 5, 6], "setopt": [1, 5], "usinewgam": [1, 5, 6], "infolisten": [1, 5], "bestmov": [1, 5], "listen": [1, 5, 6], "mate_scor": [1, 5], "re_bestmov": [1, 5], "re_info": [1, 5], "multipvlisten": [1, 5], "re_multipv": [1, 5], "web": [1, 7, 8], "app": [1, 7], "human": [1, 4, 6], "colab": [1, 6], "usi_info_to_pv": [1, 6], "features1": 2, "features2": 2, "input": 2, "model": 2, "numpi": [2, 9], "shape": 2, "features1_num": 2, "fill": 2, "features2_num": 2, "label": 2, "context": 2, "submodul": [3, 7], "shogienv": [3, 4], "render": [3, 4, 6], "step": [3, 4], "shogivecenv": [3, 4], "action_spac": [3, 4], "observation_spac": [3, 4], "environ": 4, "simul": 4, "conform": 4, "openai": 4, "gym": 4, "ansi": 4, "desir": 4, "advanc": 4, "reward": 4, "done": 4, "num_env": 4, "vector": 4, "manag": [4, 7], "multipl": 4, "simultan": 4, "status": 4, "space": 4, "acttyp": 4, "obstyp": 4, "cmd": 5, "command": [5, 8], "launch": [5, 9], "upon": 5, "respons": 5, "send": 5, "notifi": 5, "btime": [5, 6], "wtime": [5, 6], "binc": [5, 6], "winc": [5, 6], "best": 5, "remain": 5, "limit": 5, "infinit": 5, "readi": 5, "wa": 5, "wait": 5, "exit": 5, "100000": 5, "listner": 5, "obtain": 5, "interact": 5, "info_listen": 5, "1000": 5, "properti": 5, "detail": 5, "regard": 5, "itself": 5, "cp": 5, "multipv": 5, "multipv_listen": 5, "human_input": 6, "name1": 6, "name2": 6, "csa": [6, 7, 9], "host": 6, "localhost": 6, "port": 6, "8000": 6, "replai": 6, "flask": 6, "via": 6, "configur": 6, "empti": [6, 9], "claim": 6, "hostnam": 6, "bind": 6, "server": 6, "fast": 7, "verif": 7, "protocol": 7, "support": 7, "instal": 7, "quickstart": 7, "packag": [7, 8], "modul": 7, "content": [7, 9], "ki2": 7, "kif": 7, "pgn": 7, "cli": [7, 9], "elo": 7, "subpackag": 7, "page": 7, "cython": 8, "compat": 8, "requir": 8, "pip": 8, "git": 8, "http": 8, "com": 8, "tadaoyamaoka": 8, "cshogi": [8, 9], "you": 8, "need": 8, "19": 8, "higher": 8, "have": 8, "upgrad": 8, "import": 9, "1g1f": 9, "3g3f": 9, "4g4f": 9, "5g5f": 9, "6g6f": 9, "7g7f": 9, "integr": 9, "ipython": 9, "jupyt": 9, "notebook": 9, "undo": 9, "ln4skl": 9, "3r1g3": 9, "1p2pgnp1": 9, "p1ppsbp1p": 9, "5p3": 9, "2ppp1p1p": 9, "ppbssg1p1": 9, "2r3gk1": 9, "ln5nl": 9, "43": 9, "8": 9, "6": 9, "5": 9, "4": 9, "p1": 9, "ky": 9, "ke": 9, "gi": 9, "ou": 9, "p2": 9, "hi": 9, "ki": 9, "p3": 9, "fu": 9, "p4": 9, "ka": 9, "p5": 9, "p6": 9, "p7": 9, "p8": 9, "p9": 9, "00fu": 9, "nyugyoku": 9, "judgment": 9, "repetit": 9, "There": 9, "ident": 9, "66309": 9, "1716fu": 9, "form": 9, "73275": 9, "7776fu": 9, "read": 9, "teacher": 9, "hcpe": 9, "huffmancodedposandev": 9, "bin": 9, "packedsfenvalu": 9, "save": 9, "tofil": 9, "lesserkaisrc": 9, "lesserkai": 9, "7nl": 9, "5kp2": 9, "3p2g1p": 9, "2p1gp3": 9, "p6sp": 9, "s1bgpn3": 9, "4npsp1": 9, "r4r2": 9, "l1": 9, "p3k1l": 9, "gsnlpb6p": 9, "122": 9}, "objects": {"": [[1, 0, 0, "-", "cshogi"]], "cshogi": [[1, 1, 1, "", "Board"], [1, 0, 0, "-", "CSA"], [1, 1, 1, "", "DfPn"], [1, 0, 0, "-", "KI2"], [1, 0, 0, "-", "KIF"], [1, 1, 1, "", "LegalMoveList"], [1, 0, 0, "-", "PGN"], [1, 1, 1, "", "PseudoLegalMoveList"], [1, 1, 1, "", "SvgWrapper"], [1, 0, 0, "-", "cli"], [2, 0, 0, "-", "dlshogi"], [1, 0, 0, "-", "elo"], [3, 0, 0, "-", "gym_shogi"], [1, 4, 1, "", "hand_piece_to_piece_type"], [1, 4, 1, "", "move16"], [1, 4, 1, "", "move16_from_psv"], [1, 4, 1, "", "move16_to_psv"], [1, 4, 1, "", "move_cap"], [1, 4, 1, "", "move_drop_hand_piece"], [1, 4, 1, "", "move_from"], [1, 4, 1, "", "move_from_piece_type"], [1, 4, 1, "", "move_is_drop"], [1, 4, 1, "", "move_is_promotion"], [1, 4, 1, "", "move_rotate"], [1, 4, 1, "", "move_to"], [1, 4, 1, "", "move_to_csa"], [1, 4, 1, "", "move_to_usi"], [1, 4, 1, "", "opponent"], [1, 4, 1, "", "piece_to_piece_type"], [1, 4, 1, "", "to_csa"], [1, 4, 1, "", "to_usi"], [5, 0, 0, "-", "usi"], [6, 0, 0, "-", "web"]], "cshogi.Board": [[1, 2, 1, "", "book_key"], [1, 2, 1, "", "book_key_after"], [1, 2, 1, "", "copy"], [1, 2, 1, "", "csa_pos"], [1, 2, 1, "", "drop_move"], [1, 3, 1, "", "history"], [1, 2, 1, "", "is_check"], [1, 2, 1, "", "is_draw"], [1, 2, 1, "", "is_game_over"], [1, 2, 1, "", "is_legal"], [1, 2, 1, "", "is_mate"], [1, 2, 1, "", "is_nyugyoku"], [1, 2, 1, "", "is_ok"], [1, 2, 1, "", "is_pseudo_legal"], [1, 2, 1, "", "king_square"], [1, 3, 1, "", "legal_moves"], [1, 2, 1, "", "mate_move"], [1, 2, 1, "", "mate_move_in_1ply"], [1, 2, 1, "", "move"], [1, 2, 1, "", "move_from_csa"], [1, 2, 1, "", "move_from_move16"], [1, 2, 1, "", "move_from_psv"], [1, 2, 1, "", "move_from_usi"], [1, 3, 1, "", "move_number"], [1, 2, 1, "", "peek"], [1, 2, 1, "", "piece"], [1, 2, 1, "", "piece_planes"], [1, 2, 1, "", "piece_planes_rotate"], [1, 2, 1, "", "piece_type"], [1, 3, 1, "", "pieces"], [1, 3, 1, "", "pieces_in_hand"], [1, 2, 1, "", "pop"], [1, 2, 1, "", "pop_pass"], [1, 2, 1, "", "pseudo_legal_move_is_legal"], [1, 3, 1, "", "pseudo_legal_moves"], [1, 2, 1, "", "push"], [1, 2, 1, "", "push_csa"], [1, 2, 1, "", "push_move16"], [1, 2, 1, "", "push_pass"], [1, 2, 1, "", "push_psv"], [1, 2, 1, "", "push_usi"], [1, 2, 1, "", "reset"], [1, 2, 1, "", "set_hcp"], [1, 2, 1, "", "set_pieces"], [1, 2, 1, "", "set_position"], [1, 2, 1, "", "set_psfen"], [1, 2, 1, "", "set_sfen"], [1, 2, 1, "", "sfen"], [1, 2, 1, "", "to_bod"], [1, 2, 1, "", "to_hcp"], [1, 2, 1, "", "to_psfen"], [1, 2, 1, "", "to_svg"], [1, 3, 1, "", "turn"], [1, 2, 1, "", "zobrist_hash"]], "cshogi.CSA": [[1, 1, 1, "", "Exporter"], [1, 1, 1, "", "Parser"]], "cshogi.CSA.Exporter": [[1, 2, 1, "", "close"], [1, 2, 1, "", "endgame"], [1, 2, 1, "", "info"], [1, 2, 1, "", "move"], [1, 2, 1, "", "open"]], "cshogi.CSA.Parser": [[1, 3, 1, "", "comment"], [1, 3, 1, "", "comments"], [1, 3, 1, "", "endgame"], [1, 3, 1, "", "moves"], [1, 3, 1, "", "names"], [1, 2, 1, "", "parse_csa_file"], [1, 2, 1, "", "parse_csa_str"], [1, 2, 1, "", "parse_file"], [1, 2, 1, "", "parse_str"], [1, 3, 1, "", "ratings"], [1, 3, 1, "", "scores"], [1, 3, 1, "", "sfen"], [1, 3, 1, "", "times"], [1, 3, 1, "", "var_info"], [1, 3, 1, "", "version"], [1, 3, 1, "", "win"]], "cshogi.DfPn": [[1, 2, 1, "", "get_move"], [1, 2, 1, "", "get_pv"], [1, 2, 1, "", "search"], [1, 2, 1, "", "search_andnode"], [1, 3, 1, "", "searched_node"], [1, 2, 1, "", "set_draw_ply"], [1, 2, 1, "", "set_max_depth"], [1, 2, 1, "", "set_max_search_node"], [1, 2, 1, "", "stop"]], "cshogi.KI2": [[1, 1, 1, "", "Exporter"], [1, 1, 1, "", "Parser"], [1, 4, 1, "", "move_to_ki2"]], "cshogi.KI2.Exporter": [[1, 2, 1, "", "close"], [1, 2, 1, "", "end"], [1, 2, 1, "", "header"], [1, 2, 1, "", "move"], [1, 2, 1, "", "open"]], "cshogi.KI2.Parser": [[1, 3, 1, "", "HANDYCAP_SFENS"], [1, 3, 1, "", "MOVE_RE"], [1, 3, 1, "", "RESULT_RE"], [1, 2, 1, "", "parse_file"], [1, 2, 1, "", "parse_move_str"], [1, 2, 1, "", "parse_pieces_in_hand"], [1, 2, 1, "", "parse_str"]], "cshogi.KIF": [[1, 1, 1, "", "Exporter"], [1, 1, 1, "", "Parser"], [1, 5, 1, "", "ParserException"], [1, 4, 1, "", "board_to_bod"], [1, 4, 1, "", "move_to_bod"], [1, 4, 1, "", "move_to_kif"], [1, 4, 1, "", "sec_to_time"]], "cshogi.KIF.Exporter": [[1, 2, 1, "", "close"], [1, 2, 1, "", "end"], [1, 2, 1, "", "header"], [1, 2, 1, "", "info"], [1, 2, 1, "", "move"], [1, 2, 1, "", "open"]], "cshogi.KIF.Parser": [[1, 3, 1, "", "HANDYCAP_SFENS"], [1, 3, 1, "", "MOVE_RE"], [1, 3, 1, "", "RESULT_RE"], [1, 2, 1, "", "parse_file"], [1, 2, 1, "", "parse_move_str"], [1, 2, 1, "", "parse_pieces_in_hand"], [1, 2, 1, "", "parse_str"]], "cshogi.PGN": [[1, 1, 1, "", "Exporter"], [1, 4, 1, "", "move_to_san"]], "cshogi.PGN.Exporter": [[1, 2, 1, "", "close"], [1, 2, 1, "", "movetext"], [1, 2, 1, "", "open"], [1, 2, 1, "", "tag_pair"]], "cshogi.cli": [[1, 4, 1, "", "main"], [1, 4, 1, "", "to_score"], [1, 4, 1, "", "usi_info_to_csa_comment"], [1, 4, 1, "", "usi_info_to_score"]], "cshogi.dlshogi": [[2, 4, 1, "", "make_input_features"], [2, 4, 1, "", "make_move_label"]], "cshogi.elo": [[1, 1, 1, "", "Elo"], [1, 4, 1, "", "elo_diff"], [1, 4, 1, "", "erf_inv"], [1, 4, 1, "", "phi_inv"]], "cshogi.elo.Elo": [[1, 2, 1, "", "diff"], [1, 2, 1, "", "draw_ratio"], [1, 2, 1, "", "error_margin"], [1, 2, 1, "", "los"], [1, 2, 1, "", "point_ratio"]], "cshogi.gym_shogi": [[4, 0, 0, "-", "envs"]], "cshogi.gym_shogi.envs": [[4, 1, 1, "", "ShogiEnv"], [4, 1, 1, "", "ShogiVecEnv"], [4, 0, 0, "-", "shogi_env"], [4, 0, 0, "-", "shogi_vec_env"]], "cshogi.gym_shogi.envs.ShogiEnv": [[4, 3, 1, "", "action_space"], [4, 3, 1, "", "metadata"], [4, 3, 1, "", "observation_space"], [4, 2, 1, "", "render"], [4, 2, 1, "", "reset"], [4, 2, 1, "", "step"]], "cshogi.gym_shogi.envs.ShogiVecEnv": [[4, 3, 1, "", "metadata"], [4, 2, 1, "", "render"], [4, 2, 1, "", "reset"], [4, 2, 1, "", "step"]], "cshogi.gym_shogi.envs.shogi_env": [[4, 1, 1, "", "ShogiEnv"]], "cshogi.gym_shogi.envs.shogi_env.ShogiEnv": [[4, 3, 1, "", "metadata"], [4, 2, 1, "", "render"], [4, 2, 1, "", "reset"], [4, 2, 1, "", "step"]], "cshogi.gym_shogi.envs.shogi_vec_env": [[4, 1, 1, "", "ShogiVecEnv"]], "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv": [[4, 3, 1, "", "metadata"], [4, 2, 1, "", "render"], [4, 2, 1, "", "reset"], [4, 2, 1, "", "step"]], "cshogi.usi": [[5, 1, 1, "", "Engine"], [5, 1, 1, "", "InfoListener"], [5, 1, 1, "", "MultiPVListener"]], "cshogi.usi.Engine": [[5, 2, 1, "", "connect"], [5, 2, 1, "", "gameover"], [5, 2, 1, "", "go"], [5, 2, 1, "", "go_mate"], [5, 2, 1, "", "isready"], [5, 2, 1, "", "ponderhit"], [5, 2, 1, "", "position"], [5, 2, 1, "", "quit"], [5, 2, 1, "", "setoption"], [5, 2, 1, "", "stop"], [5, 2, 1, "", "usi"], [5, 2, 1, "", "usinewgame"]], "cshogi.usi.InfoListener": [[5, 6, 1, "", "bestmove"], [5, 6, 1, "", "info"], [5, 2, 1, "", "listen"], [5, 6, 1, "", "mate_score"], [5, 6, 1, "", "pv"], [5, 3, 1, "", "re_bestmove"], [5, 3, 1, "", "re_info"], [5, 6, 1, "", "score"]], "cshogi.usi.MultiPVListener": [[5, 6, 1, "", "info"], [5, 2, 1, "", "listen"], [5, 3, 1, "", "re_multipv"]], "cshogi.web": [[6, 0, 0, "-", "app"]], "cshogi.web.app": [[6, 1, 1, "", "Human"], [6, 4, 1, "", "colab"], [6, 4, 1, "", "match"], [6, 4, 1, "", "run"], [6, 4, 1, "", "usi_info_to_pv"]], "cshogi.web.app.Human": [[6, 2, 1, "", "go"], [6, 2, 1, "", "isready"], [6, 2, 1, "", "position"], [6, 2, 1, "", "quit"], [6, 2, 1, "", "usi"], [6, 2, 1, "", "usinewgame"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:attribute", "4": "py:function", "5": "py:exception", "6": "py:property"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "function", "Python function"], "5": ["py", "exception", "Python exception"], "6": ["py", "property", "Python property"]}, "titleterms": {"about": 0, "cshogi": [0, 1, 2, 3, 4, 5, 6, 7], "design": 0, "polici": 0, "handl": 0, "move": 0, "legal": 0, "check": 0, "coordin": 0, "system": 0, "piec": 0, "hand": 0, "packag": [1, 2, 3, 4, 5, 6], "modul": [1, 2, 3, 4, 5, 6], "content": [1, 2, 3, 4, 5, 6], "submodul": [1, 4, 6], "csa": 1, "ki2": 1, "kif": 1, "pgn": 1, "cli": 1, "elo": 1, "subpackag": [1, 3], "dlshogi": 2, "gym_shogi": [3, 4], "env": 4, "shogi_env": 4, "shogi_vec_env": 4, "usi": 5, "web": 6, "app": 6, "welcom": 7, "": 7, "document": 7, "introduct": 7, "refer": 7, "indic": 7, "tabl": 7, "instal": 8, "from": 8, "github": 8, "sourc": 8, "pypi": 8, "quickstart": 9, "basic": 9, "featur": 9}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1, "sphinx.ext.todo": 2, "sphinx": 57}, "alltitles": {"About cshogi": [[0, "about-cshogi"]], "Design Policy": [[0, "design-policy"]], "Handling of Moves": [[0, "handling-of-moves"]], "Legal Move Check": [[0, "legal-move-check"]], "Coordinate System": [[0, "coordinate-system"]], "Handling of Pieces": [[0, "handling-of-pieces"]], "Handling of Pieces in Hand": [[0, "handling-of-pieces-in-hand"]], "cshogi package": [[1, "cshogi-package"]], "Module contents": [[1, "module-cshogi"], [2, "module-cshogi.dlshogi"], [3, "module-cshogi.gym_shogi"], [4, "module-cshogi.gym_shogi.envs"], [5, "module-cshogi.usi"], [6, "module-cshogi.web"]], "Submodules": [[1, "submodules"], [4, "submodules"], [6, "submodules"]], "cshogi.CSA module": [[1, "module-cshogi.CSA"]], "cshogi.KI2 module": [[1, "module-cshogi.KI2"]], "cshogi.KIF module": [[1, "module-cshogi.KIF"]], "cshogi.PGN module": [[1, "module-cshogi.PGN"]], "cshogi.cli module": [[1, "module-cshogi.cli"]], "cshogi.elo module": [[1, "module-cshogi.elo"]], "Subpackages": [[1, "subpackages"], [3, "subpackages"]], "cshogi.dlshogi package": [[2, "cshogi-dlshogi-package"]], "cshogi.gym_shogi package": [[3, "cshogi-gym-shogi-package"]], "cshogi.gym_shogi.envs package": [[4, "cshogi-gym-shogi-envs-package"]], "cshogi.gym_shogi.envs.shogi_env module": [[4, "module-cshogi.gym_shogi.envs.shogi_env"]], "cshogi.gym_shogi.envs.shogi_vec_env module": [[4, "module-cshogi.gym_shogi.envs.shogi_vec_env"]], "cshogi.usi package": [[5, "cshogi-usi-package"]], "cshogi.web package": [[6, "cshogi-web-package"]], "cshogi.web.app module": [[6, "module-cshogi.web.app"]], "Welcome to cshogi\u2019s documentation!": [[7, "welcome-to-cshogi-s-documentation"]], "Introduction:": [[7, null]], "References:": [[7, null]], "Indices and tables": [[7, "indices-and-tables"]], "Installation": [[8, "installation"]], "Installation from GitHub Source": [[8, "installation-from-github-source"]], "Installation from PYPI": [[8, "installation-from-pypi"]], "Quickstart": [[9, "quickstart"]], "Basics": [[9, "basics"]], "Features": [[9, "features"]]}, "indexentries": {"board (class in cshogi)": [[1, "cshogi.Board"]], "dfpn (class in cshogi)": [[1, "cshogi.DfPn"]], "elo (class in cshogi.elo)": [[1, "cshogi.elo.Elo"]], "exporter (class in cshogi.csa)": [[1, "cshogi.CSA.Exporter"]], "exporter (class in cshogi.ki2)": [[1, "cshogi.KI2.Exporter"]], "exporter (class in cshogi.kif)": [[1, "cshogi.KIF.Exporter"]], "exporter (class in cshogi.pgn)": [[1, "cshogi.PGN.Exporter"]], "handycap_sfens (cshogi.ki2.parser attribute)": [[1, "cshogi.KI2.Parser.HANDYCAP_SFENS"]], "handycap_sfens (cshogi.kif.parser attribute)": [[1, "cshogi.KIF.Parser.HANDYCAP_SFENS"]], "legalmovelist (class in cshogi)": [[1, "cshogi.LegalMoveList"]], "move_re (cshogi.ki2.parser attribute)": [[1, "cshogi.KI2.Parser.MOVE_RE"]], "move_re (cshogi.kif.parser attribute)": [[1, "cshogi.KIF.Parser.MOVE_RE"]], "parser (class in cshogi.csa)": [[1, "cshogi.CSA.Parser"]], "parser (class in cshogi.ki2)": [[1, "cshogi.KI2.Parser"]], "parser (class in cshogi.kif)": [[1, "cshogi.KIF.Parser"]], "parserexception": [[1, "cshogi.KIF.ParserException"]], "pseudolegalmovelist (class in cshogi)": [[1, "cshogi.PseudoLegalMoveList"]], "result_re (cshogi.ki2.parser attribute)": [[1, "cshogi.KI2.Parser.RESULT_RE"]], "result_re (cshogi.kif.parser attribute)": [[1, "cshogi.KIF.Parser.RESULT_RE"]], "svgwrapper (class in cshogi)": [[1, "cshogi.SvgWrapper"]], "board_to_bod() (in module cshogi.kif)": [[1, "cshogi.KIF.board_to_bod"]], "book_key() (cshogi.board method)": [[1, "cshogi.Board.book_key"]], "book_key_after() (cshogi.board method)": [[1, "cshogi.Board.book_key_after"]], "close() (cshogi.csa.exporter method)": [[1, "cshogi.CSA.Exporter.close"]], "close() (cshogi.ki2.exporter method)": [[1, "cshogi.KI2.Exporter.close"]], "close() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.close"]], "close() (cshogi.pgn.exporter method)": [[1, "cshogi.PGN.Exporter.close"]], "comment (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.comment"]], "comments (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.comments"]], "copy() (cshogi.board method)": [[1, "cshogi.Board.copy"]], "csa_pos() (cshogi.board method)": [[1, "cshogi.Board.csa_pos"]], "cshogi": [[1, "module-cshogi"]], "cshogi.csa": [[1, "module-cshogi.CSA"]], "cshogi.ki2": [[1, "module-cshogi.KI2"]], "cshogi.kif": [[1, "module-cshogi.KIF"]], "cshogi.pgn": [[1, "module-cshogi.PGN"]], "cshogi.cli": [[1, "module-cshogi.cli"]], "cshogi.elo": [[1, "module-cshogi.elo"]], "diff() (cshogi.elo.elo method)": [[1, "cshogi.elo.Elo.diff"]], "draw_ratio() (cshogi.elo.elo method)": [[1, "cshogi.elo.Elo.draw_ratio"]], "drop_move() (cshogi.board method)": [[1, "cshogi.Board.drop_move"]], "elo_diff() (in module cshogi.elo)": [[1, "cshogi.elo.elo_diff"]], "end() (cshogi.ki2.exporter method)": [[1, "cshogi.KI2.Exporter.end"]], "end() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.end"]], "endgame (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.endgame"]], "endgame() (cshogi.csa.exporter method)": [[1, "cshogi.CSA.Exporter.endgame"]], "erf_inv() (in module cshogi.elo)": [[1, "cshogi.elo.erf_inv"]], "error_margin() (cshogi.elo.elo method)": [[1, "cshogi.elo.Elo.error_margin"]], "get_move() (cshogi.dfpn method)": [[1, "cshogi.DfPn.get_move"]], "get_pv() (cshogi.dfpn method)": [[1, "cshogi.DfPn.get_pv"]], "hand_piece_to_piece_type() (in module cshogi)": [[1, "cshogi.hand_piece_to_piece_type"]], "header() (cshogi.ki2.exporter method)": [[1, "cshogi.KI2.Exporter.header"]], "header() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.header"]], "history (cshogi.board attribute)": [[1, "cshogi.Board.history"]], "info() (cshogi.csa.exporter method)": [[1, "cshogi.CSA.Exporter.info"]], "info() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.info"]], "is_check() (cshogi.board method)": [[1, "cshogi.Board.is_check"]], "is_draw() (cshogi.board method)": [[1, "cshogi.Board.is_draw"]], "is_game_over() (cshogi.board method)": [[1, "cshogi.Board.is_game_over"]], "is_legal() (cshogi.board method)": [[1, "cshogi.Board.is_legal"]], "is_mate() (cshogi.board method)": [[1, "cshogi.Board.is_mate"]], "is_nyugyoku() (cshogi.board method)": [[1, "cshogi.Board.is_nyugyoku"]], "is_ok() (cshogi.board method)": [[1, "cshogi.Board.is_ok"]], "is_pseudo_legal() (cshogi.board method)": [[1, "cshogi.Board.is_pseudo_legal"]], "king_square() (cshogi.board method)": [[1, "cshogi.Board.king_square"]], "legal_moves (cshogi.board attribute)": [[1, "cshogi.Board.legal_moves"]], "los() (cshogi.elo.elo method)": [[1, "cshogi.elo.Elo.los"]], "main() (in module cshogi.cli)": [[1, "cshogi.cli.main"]], "mate_move() (cshogi.board method)": [[1, "cshogi.Board.mate_move"]], "mate_move_in_1ply() (cshogi.board method)": [[1, "cshogi.Board.mate_move_in_1ply"]], "module": [[1, "module-cshogi"], [1, "module-cshogi.CSA"], [1, "module-cshogi.KI2"], [1, "module-cshogi.KIF"], [1, "module-cshogi.PGN"], [1, "module-cshogi.cli"], [1, "module-cshogi.elo"], [2, "module-cshogi.dlshogi"], [3, "module-cshogi.gym_shogi"], [4, "module-cshogi.gym_shogi.envs"], [4, "module-cshogi.gym_shogi.envs.shogi_env"], [4, "module-cshogi.gym_shogi.envs.shogi_vec_env"], [5, "module-cshogi.usi"], [6, "module-cshogi.web"], [6, "module-cshogi.web.app"]], "move() (cshogi.board method)": [[1, "cshogi.Board.move"]], "move() (cshogi.csa.exporter method)": [[1, "cshogi.CSA.Exporter.move"]], "move() (cshogi.ki2.exporter method)": [[1, "cshogi.KI2.Exporter.move"]], "move() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.move"]], "move16() (in module cshogi)": [[1, "cshogi.move16"]], "move16_from_psv() (in module cshogi)": [[1, "cshogi.move16_from_psv"]], "move16_to_psv() (in module cshogi)": [[1, "cshogi.move16_to_psv"]], "move_cap() (in module cshogi)": [[1, "cshogi.move_cap"]], "move_drop_hand_piece() (in module cshogi)": [[1, "cshogi.move_drop_hand_piece"]], "move_from() (in module cshogi)": [[1, "cshogi.move_from"]], "move_from_csa() (cshogi.board method)": [[1, "cshogi.Board.move_from_csa"]], "move_from_move16() (cshogi.board method)": [[1, "cshogi.Board.move_from_move16"]], "move_from_piece_type() (in module cshogi)": [[1, "cshogi.move_from_piece_type"]], "move_from_psv() (cshogi.board method)": [[1, "cshogi.Board.move_from_psv"]], "move_from_usi() (cshogi.board method)": [[1, "cshogi.Board.move_from_usi"]], "move_is_drop() (in module cshogi)": [[1, "cshogi.move_is_drop"]], "move_is_promotion() (in module cshogi)": [[1, "cshogi.move_is_promotion"]], "move_number (cshogi.board attribute)": [[1, "cshogi.Board.move_number"]], "move_rotate() (in module cshogi)": [[1, "cshogi.move_rotate"]], "move_to() (in module cshogi)": [[1, "cshogi.move_to"]], "move_to_bod() (in module cshogi.kif)": [[1, "cshogi.KIF.move_to_bod"]], "move_to_csa() (in module cshogi)": [[1, "cshogi.move_to_csa"]], "move_to_ki2() (in module cshogi.ki2)": [[1, "cshogi.KI2.move_to_ki2"]], "move_to_kif() (in module cshogi.kif)": [[1, "cshogi.KIF.move_to_kif"]], "move_to_san() (in module cshogi.pgn)": [[1, "cshogi.PGN.move_to_san"]], "move_to_usi() (in module cshogi)": [[1, "cshogi.move_to_usi"]], "moves (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.moves"]], "movetext() (cshogi.pgn.exporter method)": [[1, "cshogi.PGN.Exporter.movetext"]], "names (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.names"]], "open() (cshogi.csa.exporter method)": [[1, "cshogi.CSA.Exporter.open"]], "open() (cshogi.ki2.exporter method)": [[1, "cshogi.KI2.Exporter.open"]], "open() (cshogi.kif.exporter method)": [[1, "cshogi.KIF.Exporter.open"]], "open() (cshogi.pgn.exporter method)": [[1, "cshogi.PGN.Exporter.open"]], "opponent() (in module cshogi)": [[1, "cshogi.opponent"]], "parse_csa_file() (cshogi.csa.parser method)": [[1, "cshogi.CSA.Parser.parse_csa_file"]], "parse_csa_str() (cshogi.csa.parser method)": [[1, "cshogi.CSA.Parser.parse_csa_str"]], "parse_file() (cshogi.csa.parser static method)": [[1, "cshogi.CSA.Parser.parse_file"]], "parse_file() (cshogi.ki2.parser static method)": [[1, "cshogi.KI2.Parser.parse_file"]], "parse_file() (cshogi.kif.parser static method)": [[1, "cshogi.KIF.Parser.parse_file"]], "parse_move_str() (cshogi.ki2.parser static method)": [[1, "cshogi.KI2.Parser.parse_move_str"]], "parse_move_str() (cshogi.kif.parser static method)": [[1, "cshogi.KIF.Parser.parse_move_str"]], "parse_pieces_in_hand() (cshogi.ki2.parser static method)": [[1, "cshogi.KI2.Parser.parse_pieces_in_hand"]], "parse_pieces_in_hand() (cshogi.kif.parser static method)": [[1, "cshogi.KIF.Parser.parse_pieces_in_hand"]], "parse_str() (cshogi.csa.parser static method)": [[1, "cshogi.CSA.Parser.parse_str"]], "parse_str() (cshogi.ki2.parser static method)": [[1, "cshogi.KI2.Parser.parse_str"]], "parse_str() (cshogi.kif.parser static method)": [[1, "cshogi.KIF.Parser.parse_str"]], "peek() (cshogi.board method)": [[1, "cshogi.Board.peek"]], "phi_inv() (in module cshogi.elo)": [[1, "cshogi.elo.phi_inv"]], "piece() (cshogi.board method)": [[1, "cshogi.Board.piece"]], "piece_planes() (cshogi.board method)": [[1, "cshogi.Board.piece_planes"]], "piece_planes_rotate() (cshogi.board method)": [[1, "cshogi.Board.piece_planes_rotate"]], "piece_to_piece_type() (in module cshogi)": [[1, "cshogi.piece_to_piece_type"]], "piece_type() (cshogi.board method)": [[1, "cshogi.Board.piece_type"]], "pieces (cshogi.board attribute)": [[1, "cshogi.Board.pieces"]], "pieces_in_hand (cshogi.board attribute)": [[1, "cshogi.Board.pieces_in_hand"]], "point_ratio() (cshogi.elo.elo method)": [[1, "cshogi.elo.Elo.point_ratio"]], "pop() (cshogi.board method)": [[1, "cshogi.Board.pop"]], "pop_pass() (cshogi.board method)": [[1, "cshogi.Board.pop_pass"]], "pseudo_legal_move_is_legal() (cshogi.board method)": [[1, "cshogi.Board.pseudo_legal_move_is_legal"]], "pseudo_legal_moves (cshogi.board attribute)": [[1, "cshogi.Board.pseudo_legal_moves"]], "push() (cshogi.board method)": [[1, "cshogi.Board.push"]], "push_csa() (cshogi.board method)": [[1, "cshogi.Board.push_csa"]], "push_move16() (cshogi.board method)": [[1, "cshogi.Board.push_move16"]], "push_pass() (cshogi.board method)": [[1, "cshogi.Board.push_pass"]], "push_psv() (cshogi.board method)": [[1, "cshogi.Board.push_psv"]], "push_usi() (cshogi.board method)": [[1, "cshogi.Board.push_usi"]], "ratings (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.ratings"]], "reset() (cshogi.board method)": [[1, "cshogi.Board.reset"]], "scores (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.scores"]], "search() (cshogi.dfpn method)": [[1, "cshogi.DfPn.search"]], "search_andnode() (cshogi.dfpn method)": [[1, "cshogi.DfPn.search_andnode"]], "searched_node (cshogi.dfpn attribute)": [[1, "cshogi.DfPn.searched_node"]], "sec_to_time() (in module cshogi.kif)": [[1, "cshogi.KIF.sec_to_time"]], "set_draw_ply() (cshogi.dfpn method)": [[1, "cshogi.DfPn.set_draw_ply"]], "set_hcp() (cshogi.board method)": [[1, "cshogi.Board.set_hcp"]], "set_max_depth() (cshogi.dfpn method)": [[1, "cshogi.DfPn.set_max_depth"]], "set_max_search_node() (cshogi.dfpn method)": [[1, "cshogi.DfPn.set_max_search_node"]], "set_pieces() (cshogi.board method)": [[1, "cshogi.Board.set_pieces"]], "set_position() (cshogi.board method)": [[1, "cshogi.Board.set_position"]], "set_psfen() (cshogi.board method)": [[1, "cshogi.Board.set_psfen"]], "set_sfen() (cshogi.board method)": [[1, "cshogi.Board.set_sfen"]], "sfen (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.sfen"]], "sfen() (cshogi.board method)": [[1, "cshogi.Board.sfen"]], "stop() (cshogi.dfpn method)": [[1, "cshogi.DfPn.stop"]], "tag_pair() (cshogi.pgn.exporter method)": [[1, "cshogi.PGN.Exporter.tag_pair"]], "times (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.times"]], "to_bod() (cshogi.board method)": [[1, "cshogi.Board.to_bod"]], "to_csa() (in module cshogi)": [[1, "cshogi.to_csa"]], "to_hcp() (cshogi.board method)": [[1, "cshogi.Board.to_hcp"]], "to_psfen() (cshogi.board method)": [[1, "cshogi.Board.to_psfen"]], "to_score() (in module cshogi.cli)": [[1, "cshogi.cli.to_score"]], "to_svg() (cshogi.board method)": [[1, "cshogi.Board.to_svg"]], "to_usi() (in module cshogi)": [[1, "cshogi.to_usi"]], "turn (cshogi.board attribute)": [[1, "cshogi.Board.turn"]], "usi_info_to_csa_comment() (in module cshogi.cli)": [[1, "cshogi.cli.usi_info_to_csa_comment"]], "usi_info_to_score() (in module cshogi.cli)": [[1, "cshogi.cli.usi_info_to_score"]], "var_info (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.var_info"]], "version (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.version"]], "win (cshogi.csa.parser attribute)": [[1, "cshogi.CSA.Parser.win"]], "zobrist_hash() (cshogi.board method)": [[1, "cshogi.Board.zobrist_hash"]], "cshogi.dlshogi": [[2, "module-cshogi.dlshogi"]], "make_input_features() (in module cshogi.dlshogi)": [[2, "cshogi.dlshogi.make_input_features"]], "make_move_label() (in module cshogi.dlshogi)": [[2, "cshogi.dlshogi.make_move_label"]], "cshogi.gym_shogi": [[3, "module-cshogi.gym_shogi"]], "shogienv (class in cshogi.gym_shogi.envs)": [[4, "cshogi.gym_shogi.envs.ShogiEnv"]], "shogienv (class in cshogi.gym_shogi.envs.shogi_env)": [[4, "cshogi.gym_shogi.envs.shogi_env.ShogiEnv"]], "shogivecenv (class in cshogi.gym_shogi.envs)": [[4, "cshogi.gym_shogi.envs.ShogiVecEnv"]], "shogivecenv (class in cshogi.gym_shogi.envs.shogi_vec_env)": [[4, "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv"]], "action_space (cshogi.gym_shogi.envs.shogienv attribute)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.action_space"]], "cshogi.gym_shogi.envs": [[4, "module-cshogi.gym_shogi.envs"]], "cshogi.gym_shogi.envs.shogi_env": [[4, "module-cshogi.gym_shogi.envs.shogi_env"]], "cshogi.gym_shogi.envs.shogi_vec_env": [[4, "module-cshogi.gym_shogi.envs.shogi_vec_env"]], "metadata (cshogi.gym_shogi.envs.shogienv attribute)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.metadata"]], "metadata (cshogi.gym_shogi.envs.shogivecenv attribute)": [[4, "cshogi.gym_shogi.envs.ShogiVecEnv.metadata"]], "metadata (cshogi.gym_shogi.envs.shogi_env.shogienv attribute)": [[4, "cshogi.gym_shogi.envs.shogi_env.ShogiEnv.metadata"]], "metadata (cshogi.gym_shogi.envs.shogi_vec_env.shogivecenv attribute)": [[4, "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv.metadata"]], "observation_space (cshogi.gym_shogi.envs.shogienv attribute)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.observation_space"]], "render() (cshogi.gym_shogi.envs.shogienv method)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.render"]], "render() (cshogi.gym_shogi.envs.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.ShogiVecEnv.render"]], "render() (cshogi.gym_shogi.envs.shogi_env.shogienv method)": [[4, "cshogi.gym_shogi.envs.shogi_env.ShogiEnv.render"]], "render() (cshogi.gym_shogi.envs.shogi_vec_env.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv.render"]], "reset() (cshogi.gym_shogi.envs.shogienv method)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.reset"]], "reset() (cshogi.gym_shogi.envs.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.ShogiVecEnv.reset"]], "reset() (cshogi.gym_shogi.envs.shogi_env.shogienv method)": [[4, "cshogi.gym_shogi.envs.shogi_env.ShogiEnv.reset"]], "reset() (cshogi.gym_shogi.envs.shogi_vec_env.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv.reset"]], "step() (cshogi.gym_shogi.envs.shogienv method)": [[4, "cshogi.gym_shogi.envs.ShogiEnv.step"]], "step() (cshogi.gym_shogi.envs.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.ShogiVecEnv.step"]], "step() (cshogi.gym_shogi.envs.shogi_env.shogienv method)": [[4, "cshogi.gym_shogi.envs.shogi_env.ShogiEnv.step"]], "step() (cshogi.gym_shogi.envs.shogi_vec_env.shogivecenv method)": [[4, "cshogi.gym_shogi.envs.shogi_vec_env.ShogiVecEnv.step"]], "engine (class in cshogi.usi)": [[5, "cshogi.usi.Engine"]], "infolistener (class in cshogi.usi)": [[5, "cshogi.usi.InfoListener"]], "multipvlistener (class in cshogi.usi)": [[5, "cshogi.usi.MultiPVListener"]], "bestmove (cshogi.usi.infolistener property)": [[5, "cshogi.usi.InfoListener.bestmove"]], "connect() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.connect"]], "cshogi.usi": [[5, "module-cshogi.usi"]], "gameover() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.gameover"]], "go() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.go"]], "go_mate() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.go_mate"]], "info (cshogi.usi.infolistener property)": [[5, "cshogi.usi.InfoListener.info"]], "info (cshogi.usi.multipvlistener property)": [[5, "cshogi.usi.MultiPVListener.info"]], "isready() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.isready"]], "listen() (cshogi.usi.infolistener method)": [[5, "cshogi.usi.InfoListener.listen"]], "listen() (cshogi.usi.multipvlistener method)": [[5, "cshogi.usi.MultiPVListener.listen"]], "mate_score (cshogi.usi.infolistener property)": [[5, "cshogi.usi.InfoListener.mate_score"]], "ponderhit() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.ponderhit"]], "position() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.position"]], "pv (cshogi.usi.infolistener property)": [[5, "cshogi.usi.InfoListener.pv"]], "quit() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.quit"]], "re_bestmove (cshogi.usi.infolistener attribute)": [[5, "cshogi.usi.InfoListener.re_bestmove"]], "re_info (cshogi.usi.infolistener attribute)": [[5, "cshogi.usi.InfoListener.re_info"]], "re_multipv (cshogi.usi.multipvlistener attribute)": [[5, "cshogi.usi.MultiPVListener.re_multipv"]], "score (cshogi.usi.infolistener property)": [[5, "cshogi.usi.InfoListener.score"]], "setoption() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.setoption"]], "stop() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.stop"]], "usi() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.usi"]], "usinewgame() (cshogi.usi.engine method)": [[5, "cshogi.usi.Engine.usinewgame"]], "human (class in cshogi.web.app)": [[6, "cshogi.web.app.Human"]], "colab() (in module cshogi.web.app)": [[6, "cshogi.web.app.colab"]], "cshogi.web": [[6, "module-cshogi.web"]], "cshogi.web.app": [[6, "module-cshogi.web.app"]], "go() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.go"]], "isready() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.isready"]], "match() (in module cshogi.web.app)": [[6, "cshogi.web.app.match"]], "position() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.position"]], "quit() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.quit"]], "run() (in module cshogi.web.app)": [[6, "cshogi.web.app.run"]], "usi() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.usi"]], "usi_info_to_pv() (in module cshogi.web.app)": [[6, "cshogi.web.app.usi_info_to_pv"]], "usinewgame() (cshogi.web.app.human method)": [[6, "cshogi.web.app.Human.usinewgame"]]}})
\ No newline at end of file