diff --git a/.doctrees/cshogi.dlshogi.doctree b/.doctrees/cshogi.dlshogi.doctree index d13b881..1d15d4a 100644 Binary files a/.doctrees/cshogi.dlshogi.doctree and b/.doctrees/cshogi.dlshogi.doctree differ diff --git a/.doctrees/cshogi.doctree b/.doctrees/cshogi.doctree index 8feee1d..a84f898 100644 Binary files a/.doctrees/cshogi.doctree and b/.doctrees/cshogi.doctree differ diff --git a/.doctrees/environment.pickle b/.doctrees/environment.pickle index 22532b0..640fd2f 100644 Binary files a/.doctrees/environment.pickle and b/.doctrees/environment.pickle differ diff --git a/_modules/cshogi/KI2.html b/_modules/cshogi/KI2.html index 0b1309c..cfe367c 100644 --- a/_modules/cshogi/KI2.html +++ b/_modules/cshogi/KI2.html @@ -386,11 +386,9 @@

Source code for cshogi.KI2

                 from_square2 = move_from(move2)
                 # 後手は180度回転
                 from_file2, from_rank2 = divmod(from_square2 if board.turn == cshogi.BLACK else 80 - from_square2, 9)
-                if from_file2 == to_file and from_rank2 > to_rank: # 直
-                    continue
                 if from_file2 > to_file: # 左
                     candidates_left += 1
-                else:
+                elif from_file2 < to_file: # 右
                     candidates_right += 1
 
                 if from_rank2 > to_rank: # 上
diff --git a/_modules/cshogi/PGN.html b/_modules/cshogi/PGN.html
index 5b98247..4a2bac7 100644
--- a/_modules/cshogi/PGN.html
+++ b/_modules/cshogi/PGN.html
@@ -81,15 +81,15 @@ 

Source code for cshogi.PGN

 from datetime import datetime
 
 PGN_SQUARE_NAMES = [
-	'i9', 'i8', 'i7', 'i6', 'i5', 'i4', 'i3', 'i2', 'i1',
-	'h9', 'h8', 'h7', 'h6', 'h5', 'h4', 'h3', 'h2', 'h1',
-	'g9', 'g8', 'g7', 'g6', 'g5', 'g4', 'g3', 'g2', 'g1',
-	'f9', 'f8', 'f7', 'f6', 'f5', 'f4', 'f3', 'f2', 'f1',
-	'e9', 'e8', 'e7', 'e6', 'e5', 'e4', 'e3', 'e2', 'e1',
-	'd9', 'd8', 'd7', 'd6', 'd5', 'd4', 'd3', 'd2', 'd1',
-	'c9', 'c8', 'c7', 'c6', 'c5', 'c4', 'c3', 'c2', 'c1',
-	'b9', 'b8', 'b7', 'b6', 'b5', 'b4', 'b3', 'b2', 'b1',
-	'a9', 'a8', 'a7', 'a6', 'a5', 'a4', 'a3', 'a2', 'a1',
+    'i9', 'i8', 'i7', 'i6', 'i5', 'i4', 'i3', 'i2', 'i1',
+    'h9', 'h8', 'h7', 'h6', 'h5', 'h4', 'h3', 'h2', 'h1',
+    'g9', 'g8', 'g7', 'g6', 'g5', 'g4', 'g3', 'g2', 'g1',
+    'f9', 'f8', 'f7', 'f6', 'f5', 'f4', 'f3', 'f2', 'f1',
+    'e9', 'e8', 'e7', 'e6', 'e5', 'e4', 'e3', 'e2', 'e1',
+    'd9', 'd8', 'd7', 'd6', 'd5', 'd4', 'd3', 'd2', 'd1',
+    'c9', 'c8', 'c7', 'c6', 'c5', 'c4', 'c3', 'c2', 'c1',
+    'b9', 'b8', 'b7', 'b6', 'b5', 'b4', 'b3', 'b2', 'b1',
+    'a9', 'a8', 'a7', 'a6', 'a5', 'a4', 'a3', 'a2', 'a1',
 ]
 
 PGN_HAND_PIECES = [
diff --git a/_modules/cshogi/elo.html b/_modules/cshogi/elo.html
index 5d3edb0..ca57c0e 100644
--- a/_modules/cshogi/elo.html
+++ b/_modules/cshogi/elo.html
@@ -79,86 +79,86 @@ 

Source code for cshogi.elo

 import math
 
 
[docs]def elo_diff(p): - return -400.0 * math.log10(1.0 / p - 1.0)
+ return -400.0 * math.log10(1.0 / p - 1.0)
[docs]def erf_inv(x): - pi = 3.1415926535897 + pi = 3.1415926535897 - a = 8.0 * (pi - 3.0) / (3.0 * pi * (4.0 - pi)) - y = math.log(1.0 - x * x) - z = 2.0 / (pi * a) + y / 2.0 + a = 8.0 * (pi - 3.0) / (3.0 * pi * (4.0 - pi)) + y = math.log(1.0 - x * x) + z = 2.0 / (pi * a) + y / 2.0 - ret = math.sqrt(math.sqrt(z * z - y / a) - z) + ret = math.sqrt(math.sqrt(z * z - y / a) - z) - if x < 0.0: - return -ret - return ret
+ if x < 0.0: + return -ret + return ret
[docs]def phi_inv(p): - return math.sqrt(2.0) * erf_inv(2.0 * p - 1.0)
+ return math.sqrt(2.0) * erf_inv(2.0 * p - 1.0)
[docs]class Elo: - """A class for calculating Elo ratings based on wins, losses, and draws. - - :param wins: Number of wins. - :param losses: Number of losses. - :param draws: Number of draws. - """ - - def __init__(self, wins: int, losses: int, draws: int): - self.wins = wins - self.losses = losses - self.draws = draws - - n = wins + losses + draws - w = wins / n - l = losses / n - d = draws / n - self.mu = w + d / 2.0 - - dev_w = w * math.pow(1.0 - self.mu, 2.0) - dev_l = l * math.pow(0.0 - self.mu, 2.0) - dev_d = d * math.pow(0.5 - self.mu, 2.0) - self.stdev = math.sqrt(dev_w + dev_l + dev_d) / math.sqrt(n) - -
[docs] def point_ratio(self) -> float: - """Calculates the point ratio. - - :return: The point ratio. - """ - total = (self.wins + self.losses + self.draws) * 2 - return ((self.wins * 2) + self.draws) / total
- -
[docs] def draw_ratio(self) -> float: - """Calculates the draw ratio. - - :return: The draw ratio. - """ - n = self.wins + self.losses + self.draws - return self.draws / n
- -
[docs] def diff(self) -> float: - """Calculates the Elo difference. - - :return: The Elo difference. - """ - return elo_diff(self.mu)
- -
[docs] def error_margin(self) -> float: - """Calculates the error margin. - - :return: The error margin. - """ - mu_min = self.mu + phi_inv(0.025) * self.stdev - mu_max = self.mu + phi_inv(0.975) * self.stdev - return (elo_diff(mu_max) - elo_diff(mu_min)) / 2.0
- -
[docs] def los(self) -> float: - """Calculates the likelihood of superiority. - - :return: The likelihood of superiority, in percentage. - """ - return 100 * (0.5 + 0.5 * math.erf((self.wins - self.losses) / math.sqrt(2.0 * (self.wins + self.losses))))
+ """A class for calculating Elo ratings based on wins, losses, and draws. + + :param wins: Number of wins. + :param losses: Number of losses. + :param draws: Number of draws. + """ + + def __init__(self, wins: int, losses: int, draws: int): + self.wins = wins + self.losses = losses + self.draws = draws + + n = wins + losses + draws + w = wins / n + l = losses / n + d = draws / n + self.mu = w + d / 2.0 + + dev_w = w * math.pow(1.0 - self.mu, 2.0) + dev_l = l * math.pow(0.0 - self.mu, 2.0) + dev_d = d * math.pow(0.5 - self.mu, 2.0) + self.stdev = math.sqrt(dev_w + dev_l + dev_d) / math.sqrt(n) + +
[docs] def point_ratio(self) -> float: + """Calculates the point ratio. + + :return: The point ratio. + """ + total = (self.wins + self.losses + self.draws) * 2 + return ((self.wins * 2) + self.draws) / total
+ +
[docs] def draw_ratio(self) -> float: + """Calculates the draw ratio. + + :return: The draw ratio. + """ + n = self.wins + self.losses + self.draws + return self.draws / n
+ +
[docs] def diff(self) -> float: + """Calculates the Elo difference. + + :return: The Elo difference. + """ + return elo_diff(self.mu)
+ +
[docs] def error_margin(self) -> float: + """Calculates the error margin. + + :return: The error margin. + """ + mu_min = self.mu + phi_inv(0.025) * self.stdev + mu_max = self.mu + phi_inv(0.975) * self.stdev + return (elo_diff(mu_max) - elo_diff(mu_min)) / 2.0
+ +
[docs] def los(self) -> float: + """Calculates the likelihood of superiority. + + :return: The likelihood of superiority, in percentage. + """ + return 100 * (0.5 + 0.5 * math.erf((self.wins - self.losses) / math.sqrt(2.0 * (self.wins + self.losses))))
diff --git a/cshogi.dlshogi.html b/cshogi.dlshogi.html index 08efd31..aebb7f4 100644 --- a/cshogi.dlshogi.html +++ b/cshogi.dlshogi.html @@ -120,7 +120,7 @@

cshogi.dlshogi package
-cshogi.dlshogi.make_move_label(move, color)
+cshogi.dlshogi.make_move_label()

Make a move label for the given move and color in the context of the dlshogi model.

Parameters:
diff --git a/cshogi.html b/cshogi.html index 7eb3133..c6b5b0d 100644 --- a/cshogi.html +++ b/cshogi.html @@ -68,6 +68,7 @@
  • Board.is_nyugyoku()
  • Board.is_ok()
  • Board.is_pseudo_legal()
  • +
  • Board.king_square()
  • Board.legal_moves
  • Board.mate_move()
  • Board.mate_move_in_1ply()
  • @@ -336,7 +337,7 @@

    cshogi package
    -book_key_after(key, move)
    +book_key_after()

    Gets the key for the opening book after a specific move.

    Parameters:
    @@ -381,7 +382,7 @@

    cshogi package
    -drop_move(to_square, drop_piece_type)
    +drop_move()

    Make a drop move on the board.

    Parameters:
    @@ -429,7 +430,7 @@

    cshogi package
    -is_draw(ply=None)
    +is_draw()

    Determines whether the current game state represents a draw or another special condition.

    Parameters:
    @@ -466,7 +467,7 @@

    cshogi package +is_legal()

    Checks if a move is legal.

    Parameters:
    @@ -483,7 +484,7 @@

    cshogi package
    -is_mate(ply)
    +is_mate()

    Checks if a mate condition is met in a given number of ply.

    Parameters:
    @@ -528,7 +529,7 @@

    cshogi package +is_pseudo_legal()

    Checks if a move is pseudo-legal.

    Parameters:
    @@ -543,6 +544,23 @@

    cshogi package +
    +king_square()
    +

    Returns the square index of the king for a given color.

    +
    +
    Parameters:
    +

    c (int) – The color of the king, either BLACK or WHITE.

    +
    +
    Returns:
    +

    The square index of the king for the specified color.

    +
    +
    Return type:
    +

    int

    +
    +
    +

    +
    legal_moves
    @@ -559,7 +577,7 @@

    cshogi package
    -mate_move(ply)
    +mate_move()

    Finds a mating move in a given number of ply.

    Parameters:
    @@ -590,7 +608,7 @@

    cshogi package
    -move(from_square, to_square, promotion)
    +move()

    Make a move on the board.

    Parameters:
    @@ -611,7 +629,7 @@

    cshogi package
    -move_from_csa(csa)
    +move_from_csa()

    Make a move on the board using a CSA-formatted string.

    Parameters:
    @@ -628,7 +646,7 @@

    cshogi package
    -move_from_move16(move16)
    +move_from_move16()

    Make a move on the board using a 16-bit move code.

    Parameters:
    @@ -645,7 +663,7 @@

    cshogi package
    -move_from_psv(move16)
    +move_from_psv()

    Make a move on the board using a PSV-formatted move code.

    Parameters:
    @@ -662,7 +680,7 @@

    cshogi package
    -move_from_usi(usi)
    +move_from_usi()

    Make a move on the board using a USI-formatted string.

    Parameters:
    @@ -704,7 +722,7 @@

    cshogi package
    -piece(sq)
    +piece()

    Returns the piece at a given square.

    Parameters:
    @@ -721,7 +739,7 @@

    cshogi package
    -piece_planes(features)
    +piece_planes()

    Generate piece planes representing the current state of the board. The result is stored in the given ndarray.

    Parameters:
    @@ -732,7 +750,7 @@

    cshogi package
    -piece_planes_rotate(features)
    +piece_planes_rotate()

    Generate 180-degree rotated piece planes representing the current state of the board. The result is stored in the given ndarray.

    Parameters:
    @@ -743,7 +761,7 @@

    cshogi package
    -piece_type(sq)
    +piece_type()

    Returns the type of piece at a given square.

    Parameters:
    @@ -808,7 +826,7 @@

    cshogi package +pseudo_legal_move_is_legal()

    Checks if a pseudo-legal move is legal.

    Parameters:
    @@ -839,7 +857,7 @@

    cshogi package
    -push(move)
    +push()

    Push a move to the board.

    The move is represented as an integer, where each bit has the following meaning:

      @@ -858,7 +876,7 @@

      cshogi package
      -push_csa(csa)
      +push_csa()

      Push a move to the board in Computer Shogi Association (CSA) format.

      Parameters:
      @@ -875,7 +893,7 @@

      cshogi package
      -push_move16(move16)
      +push_move16()

      Push a 16-bit move to the board.

      The move16 is the lower 16 bits of the ingeter move format.

      @@ -907,7 +925,7 @@

      cshogi package
      -push_psv(move16)
      +push_psv()

      Push a move to the board in PSV format, which is used in YaneuraOu.

      Parameters:
      @@ -924,7 +942,7 @@

      cshogi package
      -push_usi(usi)
      +push_usi()

      Push a move to the board in Universal Shogi Interface (USI) format.

      Parameters:
      @@ -947,20 +965,17 @@

      cshogi package
      -set_hcp(hcp)
      +set_hcp()

      Sets the board using HuffmanCodedPos (hcp) format, a compression format used in Apery.

      Parameters:

      hcp (np.ndarray) – The HuffmanCodedPos data to set the board.

      -
      Returns:
      -

      Returns True if successful, False otherwise.

      -
      -
      Return type:
      -

      bool

      +
      Raises:
      +

      RuntimeError – If the hcp is incorrect.

      -
      Example:
      -

      +
      Example:
      +

      hcp = np.fromfile("hcpfile", HuffmanCodedPos)
       board.set_hcp(np.asarray(hcp[0]))
      @@ -970,7 +985,7 @@ 

      cshogi package
      -set_pieces(pieces, pieces_in_hand)
      +set_pieces()

      Sets the pieces on the board and pieces in hand.

      Parameters:
      @@ -1003,44 +1018,38 @@

      cshogi package
      -set_position(position)
      +set_position()

      Sets the position on the board using a given string.

      Parameters:

      position (str) – String representing the position to be set.

      -
      Returns:
      -

      True if the position was successfully set, False otherwise.

      -
      -
      Return type:
      -

      bool

      +
      Raises:
      +

      RuntimeError – If the position string is incorrect.

      -
      Example:
      -

      +
      Example:
      +

      board.set_position("startpos moves 2g2f")
       
      -board.set_position("lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1 moves 2g2f")
      +board.set_position("sfen lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1")
       

      -set_psfen(psfen)
      +set_psfen()

      Sets the board using PackedSfen (psfen) format, a compression format used in YaneuraOu.

      Parameters:
      -

      hcp (np.ndarray) – The PackedSfen data to set the board.

      -
      -
      Returns:
      -

      Returns True if successful, False otherwise.

      +

      psfen (np.ndarray) – The PackedSfen data to set the board.

      -
      Return type:
      -

      bool

      +
      Raises:
      +

      RuntimeError – If the psfen is incorrect.

      -
      Example:
      -

      +
      Example:
      +

      psfen = np.fromfile("psfenfile", PackedSfen)
       board.set_psfen(np.asarray(psfen[0]))
      @@ -1050,14 +1059,17 @@ 

      cshogi package
      -set_sfen(sfen)
      +set_sfen()

      Sets the board state using a given SFEN string.

      Parameters:
      -

      sfen – String representing the board state in SFEN.

      +

      sfen (str) – String representing the board state in SFEN.

      -
      Example:
      -

      +
      Raises:
      +

      RuntimeError – If the sfen string is incorrect.

      +
      +
      Example:
      +

      board.set_sfen("lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1")
       
      @@ -1094,7 +1106,7 @@

      cshogi package
      -to_hcp(hcp)
      +to_hcp()

      Converts the current board to HuffmanCodedPos (hcp) format.

      Parameters:
      @@ -1105,18 +1117,18 @@

      cshogi package
      -to_psfen(psfen)
      +to_psfen()

      Converts the current board to PackedSfen (psfen) format.

      Parameters:
      -

      psfen – An array to store the psfen data.

      +

      psfen (np.ndarray) – An array to store the psfen data.

      -to_svg(lastmove=None, scale=1.0)
      +to_svg()

      Generate an SVG representation of the current board state.

      Parameters:
      @@ -1177,7 +1189,7 @@

      cshogi package
      -get_move(board)
      +get_move()

      Gets the mating move found by the search.

      Parameters:
      @@ -1194,7 +1206,7 @@

      cshogi package
      -get_pv(board)
      +get_pv()

      Gets the principal variation (PV) of the mating sequence found by the search.

      Parameters:
      @@ -1211,7 +1223,7 @@

      cshogi package
      -search(board)
      +search()

      Perform a checkmate search on the given board.

      Parameters:
      @@ -1228,7 +1240,7 @@

      cshogi package
      -search_andnode(board)
      +search_andnode()

      Perform a checkmate search at the AND node.

      Parameters:
      @@ -1259,7 +1271,7 @@

      cshogi package
      -set_draw_ply(draw_ply)
      +set_draw_ply()

      Sets the number of plies for a draw.

      Parameters:
      @@ -1270,7 +1282,7 @@

      cshogi package
      -set_max_depth(max_depth)
      +set_max_depth()

      Sets the maximum search depth.

      Parameters:
      @@ -1281,7 +1293,7 @@

      cshogi package
      -set_max_search_node(max_search_node)
      +set_max_search_node()

      Sets the maximum number of search nodes.

      Parameters:
      @@ -1292,7 +1304,7 @@

      cshogi package
      -stop(stop)
      +stop()

      Stop the search.

      Parameters:
      @@ -1325,7 +1337,7 @@

      cshogi package
      -cshogi.hand_piece_to_piece_type(hp)
      +cshogi.hand_piece_to_piece_type()

      Convert a hand piece identifier to its corresponding piece type.

      Parameters:
      @@ -1342,7 +1354,7 @@

      cshogi package
      -cshogi.move16(move)
      +cshogi.move16()

      Convert a move to a 16-bit representation.

      Parameters:
      @@ -1359,7 +1371,7 @@

      cshogi package
      -cshogi.move16_from_psv(move16)
      +cshogi.move16_from_psv()

      Convert a 16-bit move representation from a move in PSV format.

      Parameters:
      @@ -1376,7 +1388,7 @@

      cshogi package
      -cshogi.move16_to_psv(move16)
      +cshogi.move16_to_psv()

      Convert a 16-bit move representation to a move in PSV format.

      Parameters:
      @@ -1393,7 +1405,7 @@

      cshogi package
      -cshogi.move_cap(move)
      +cshogi.move_cap()

      Extract the captured piece of a move.

      Parameters:
      @@ -1410,7 +1422,7 @@

      cshogi package
      -cshogi.move_drop_hand_piece(move)
      +cshogi.move_drop_hand_piece()

      Extract the hand piece of a drop move.

      Parameters:
      @@ -1427,7 +1439,7 @@

      cshogi package
      -cshogi.move_from(move)
      +cshogi.move_from()

      Extract the source square of a move.

      Parameters:
      @@ -1444,7 +1456,7 @@

      cshogi package
      -cshogi.move_from_piece_type(move)
      +cshogi.move_from_piece_type()

      Extract the piece type moved from a move.

      Parameters:
      @@ -1461,7 +1473,7 @@

      cshogi package
      -cshogi.move_is_drop(move)
      +cshogi.move_is_drop()

      Checks if a move is a drop move.

      Parameters:
      @@ -1478,7 +1490,7 @@

      cshogi package
      -cshogi.move_is_promotion(move)
      +cshogi.move_is_promotion()

      Checks if a move is a promotion move.

      Parameters:
      @@ -1495,7 +1507,7 @@

      cshogi package
      -cshogi.move_rotate(move)
      +cshogi.move_rotate()

      Convert a move to a move rotated by 180 degrees.

      Parameters:
      @@ -1512,7 +1524,7 @@

      cshogi package
      -cshogi.move_to(move)
      +cshogi.move_to()

      Extract the destination square of a move.

      Parameters:
      @@ -1529,7 +1541,7 @@

      cshogi package
      -cshogi.move_to_csa(move)
      +cshogi.move_to_csa()

      Convert a move to the Computer Shogi Association (CSA) format.

      Parameters:
      @@ -1546,7 +1558,7 @@

      cshogi package
      -cshogi.move_to_usi(move)
      +cshogi.move_to_usi()

      Convert a move to the Universal Shogi Interface (USI) format.

      Parameters:
      @@ -1563,7 +1575,7 @@

      cshogi package
      -cshogi.opponent(color)
      +cshogi.opponent()

      Gets the opponent’s color.

      Parameters:
      @@ -1580,7 +1592,7 @@

      cshogi package
      -cshogi.piece_to_piece_type(p)
      +cshogi.piece_to_piece_type()

      Convert a piece identifier to its corresponding piece type.

      Parameters:
      @@ -1597,7 +1609,7 @@

      cshogi package
      -cshogi.to_csa(move)
      +cshogi.to_csa()

      Convert a move to the Computer Shogi Association (CSA) format.

      Parameters:
      @@ -1614,7 +1626,7 @@

      cshogi package
      -cshogi.to_usi(move)
      +cshogi.to_usi()

      Convert a move to the Universal Shogi Interface (USI) format.

      Parameters:
      @@ -1796,7 +1808,7 @@

      Submodules
      -parse_csa_file(path)
      +parse_csa_file()

      Parse a CSA standard Shogi game record from a file path.

      Parameters:
      @@ -1807,7 +1819,7 @@

      Submodules
      -parse_csa_str(csa_str)
      +parse_csa_str()

      Parse a CSA standard Shogi game record from a string.

      Parameters:
      @@ -1818,7 +1830,7 @@

      Submodules
      -static parse_file(file, encoding=None)
      +static parse_file()

      Parse CSA standard Shogi game records from a file.

      Parameters:
      @@ -1838,7 +1850,7 @@

      Submodules
      -static parse_str(csa_str)
      +static parse_str()

      Parse CSA standard Shogi game records from a string.

      Parameters:
      diff --git a/genindex.html b/genindex.html index 5d0fea0..7924b08 100644 --- a/genindex.html +++ b/genindex.html @@ -86,6 +86,7 @@

      Index

      | G | H | I + | K | L | M | N @@ -408,6 +409,14 @@

      I

    +

    K

    + + +
    +

    L

      diff --git a/index.html b/index.html index 47ca9f4..b00a52a 100644 --- a/index.html +++ b/index.html @@ -108,6 +108,7 @@

      Welcome to cshogi’s documentation!Board.is_nyugyoku()
    • Board.is_ok()
    • Board.is_pseudo_legal()
    • +
    • Board.king_square()
    • Board.legal_moves
    • Board.mate_move()
    • Board.mate_move_in_1ply()
    • diff --git a/objects.inv b/objects.inv index 538e03c..ee72c29 100644 Binary files a/objects.inv and b/objects.inv differ diff --git a/searchindex.js b/searchindex.js index a7a3e8f..c1a91fd 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, 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, "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], "move": [1, 2, 4, 5, 6, 7, 9], "after": [1, 5], "specif": 1, "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], "to_squar": 1, "drop_piece_typ": 1, "drop": 1, "destin": 1, "squar": 1, "index": [1, 7], "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], "ply": 1, "whether": [1, 5], "draw": [1, 4, 6, 9], "anoth": 1, "special": 1, "condit": [1, 5], "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, "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, "promot": 1, "start": [1, 5, 7, 9], "involv": 1, "move_from_csa": [1, 7, 9], "move_from_move16": [1, 7], "move16": [1, 7], "16": 1, "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], "featur": [1, 2], "plane": 1, "store": 1, "ndarrai": [1, 2, 4], "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, "black": [1, 5], "white": [1, 5], "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], "hcp": [1, 4, 9], "set": [1, 2, 5], "huffmancodedpo": [1, 9], "compress": [1, 9], "success": 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], "wa": [1, 5], "successfulli": 1, "startpo": [1, 5, 6], "2g2f": [1, 9], "set_psfen": [1, 7, 9], "psfen": [1, 9], "packedsfen": 1, "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], "lastmov": 1, "scale": 1, "svg": [1, 4], "represent": [1, 4, 9], "ani": [1, 4], "float": [1, 4], "factor": 1, "svgwrapper": [1, 4, 7], "turn": [1, 7], "either": 1, "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], "hp": 1, "identifi": 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], "color": [1, 2], "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], "rais": 1, "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, "specifi": 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, "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, 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"]], "Quickstart": [[9, "quickstart"]], "Basics": [[9, "basics"]], "Features": [[9, "features"]], "Installation": [[8, "installation"]], "Installation from GitHub Source": [[8, "installation-from-github-source"]], "Installation from PYPI": [[8, "installation-from-pypi"]]}, "indexentries": {}}) \ 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], "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