cshogi.dlshogi package

Module contents

cshogi.dlshogi.make_input_features(board, features1, features2)[source]

Make input features from the given board for use in the dlshogi model.

Parameters:
  • board (Board) – A Board object representing the current state of a game.

  • features1 (ndarray) – A numpy array of shape (FEATURES1_NUM, 9, 9) to be filled with the first set of features.

  • features2 (ndarray) – A numpy array of shape (FEATURES2_NUM, 9, 9) to be filled with the second set of features.

cshogi.dlshogi.make_move_label(move, color)

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

Parameters:
  • move – An integer representing the move.

  • color – An integer representing the color.

Returns:

An integer label generated for the move and color.