src
- c4 module
C4
C4.M
C4.N
C4.SYMBOLS
C4.__init__()
C4.class_repr()
C4.__str__()
C4.take_action_job()
C4.compute_outcome_job()
C4.compute_outcome_job_numba_jit()
C4.take_random_action_playout()
C4.get_board()
C4.get_extra_info()
C4.action_name_to_index()
C4.action_index_to_name()
C4.get_board_shape()
C4.__module__
C4.get_extra_info_memory()
C4.get_max_actions()
- game_runner module
- gomoku module
Gomoku
Gomoku.M
Gomoku.N
Gomoku.SYMBOLS
Gomoku.__init__()
Gomoku.class_repr()
Gomoku.__str__()
Gomoku.take_action_job()
Gomoku.compute_outcome_job()
Gomoku.compute_outcome_job_numba_jit()
Gomoku.take_random_action_playout()
Gomoku.get_board()
Gomoku.get_extra_info()
Gomoku.action_name_to_index()
Gomoku.action_index_to_name()
Gomoku.get_board_shape()
Gomoku.get_extra_info_memory()
Gomoku.__module__
Gomoku.get_max_actions()
- main module
- mcts module
- Link to project repository
- Notes
State
State.__init__()
State.__str__()
State.class_repr()
State._subtree_size()
State._subtree_max_depth()
State._subtree_depths()
State.get_turn()
State.take_action()
State.take_action_job()
State.compute_outcome()
State.compute_outcome_job()
State.get_board()
State.get_extra_info()
State.expand()
State.take_random_action_playout()
State.action_name_to_index()
State.action_index_to_name()
State.get_board_shape()
State.get_extra_info_memory()
State.get_max_actions()
State.__module__
MCTS
MCTS.DEFAULT_SEARCH_TIME_LIMIT
MCTS.DEFAULT_SEARCH_STEPS_LIMIT
MCTS.DEFAULT_VANILLA
MCTS.DEFAULT_UCB_C
MCTS.DEFAULT_SEED
MCTS.DEFAULT_VERBOSE_DEBUG
MCTS.DEFAULT_VERBOSE_INFO
MCTS.__init__()
MCTS.__str__()
MCTS.__repr__()
MCTS._make_performance_info()
MCTS._make_actions_info()
MCTS._best_action_ucb()
MCTS._best_action()
MCTS.run()
MCTS._select()
MCTS._expand()
MCTS._playout()
MCTS._backup()
MCTS._reduce_over_actions()
MCTS.__module__
- mctsnc module
- Example usage 1 (Connect 4)
- Example usage 2 (Gomoku)
- Dependencies
- Link to project repository
- Notes
MCTSNC
MCTSNC.VARIANTS
MCTSNC.DEFAULT_SEARCH_TIME_LIMIT
MCTSNC.DEFAULT_SEARCH_STEPS_LIMIT
MCTSNC.DEFAULT_N_TREES
MCTSNC.DEFAULT_N_PLAYOUTS
MCTSNC.DEFAULT_VARIANT
MCTSNC.DEFAULT_DEVICE_MEMORY
MCTSNC.DEFAULT_UCB_C
MCTSNC.DEFAULT_SEED
MCTSNC.DEFAULT_VERBOSE_DEBUG
MCTSNC.DEFAULT_VERBOSE_INFO
MCTSNC.MAX_STATE_BOARD_SHAPE
MCTSNC.MAX_STATE_EXTRA_INFO_MEMORY
MCTSNC.MAX_STATE_MAX_ACTIONS
MCTSNC.MAX_TREE_SIZE
MCTSNC.MAX_N_TREES
MCTSNC.MAX_N_PLAYOUTS
MCTSNC.MAX_TREE_DEPTH
MCTSNC.__init__()
MCTSNC._set_cuda_constants()
MCTSNC._validate_param()
MCTSNC.__str__()
MCTSNC.__repr__()
MCTSNC.init_device_side_arrays()
MCTSNC.run()
MCTSNC._flatten_trees_actions_expanded_thrifty()
MCTSNC._make_performance_info()
MCTSNC._make_actions_info_thrifty()
MCTSNC._make_actions_info_prodigal()
MCTSNC._run_ocp_thrifty()
MCTSNC._run_ocp_prodigal()
MCTSNC._run_acp_thrifty()
MCTSNC._run_acp_prodigal()
MCTSNC._reset()
MCTSNC._select()
MCTSNC._expand_1_ocp_thrifty()
MCTSNC._expand_1_ocp_prodigal()
MCTSNC._expand_1_acp_thrifty()
MCTSNC._expand_1_acp_prodigal()
MCTSNC._memorize_root_actions_expanded()
MCTSNC._expand_2_thrifty()
MCTSNC._expand_2_prodigal()
MCTSNC._playout_ocp()
MCTSNC._playout_acp_thrifty()
MCTSNC._playout_acp_prodigal()
MCTSNC._backup_ocp()
MCTSNC._backup_1_acp_thrifty()
MCTSNC._backup_1_acp_prodigal()
MCTSNC._backup_2_acp()
MCTSNC._reduce_over_trees_thrifty()
MCTSNC._reduce_over_trees_prodigal()
MCTSNC._reduce_over_actions_thrifty()
MCTSNC._reduce_over_actions_prodigal()
MCTSNC._json_dump()
MCTSNC.__module__
- mctsnc_game_mechanics module
- Link to project repository
is_action_legal()
take_action()
legal_actions_playout()
take_action_playout()
compute_outcome()
is_action_legal_c4()
take_action_c4()
legal_actions_playout_c4()
take_action_playout_c4()
compute_outcome_c4()
is_action_legal_gomoku()
take_action_gomoku()
legal_actions_playout_gomoku()
take_action_playout_gomoku()
compute_outcome_gomoku()
- plots module
- Link to project repository
scores_array_plot()
scores_array_plot_generator()
scores_array_plot_ocp_thrifty_vs_vanilla_c4()
scores_array_plot_ocp_prodigal_vs_vanilla_c4()
scores_array_plot_acp_thrifty_vs_vanilla_c4()
scores_array_plot_acp_prodigal_vs_vanilla()
best_action_plot()
best_action_plot_generator()
depths_plot()
depths_plot_generator()
averages_printout_generator()
averages_printout_5s_vanilla_c4()
averages_printout_5s_ocp_thrifty_c4()
averages_printout_5s_ocp_prodigal_c4()
averages_printout_5s_acp_thrifty_c4()
averages_printout_5s_acp_prodigal_c4()
averages_printout_30s_vanilla_gomoku()
averages_printout_30s_ocp_thrifty_gomoku()
averages_printout_30s_ocp_prodigal_gomoku()
averages_printout_30s_acp_thrifty_gomoku()
averages_printout_30s_acp_prodigal_gomoku()
- utils module