src
- c4 module
C4C4.MC4.NC4.SYMBOLSC4.__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
GomokuGomoku.MGomoku.NGomoku.SYMBOLSGomoku.__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
StateState.__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__
MCTSMCTS.DEFAULT_SEARCH_TIME_LIMITMCTS.DEFAULT_SEARCH_STEPS_LIMITMCTS.DEFAULT_VANILLAMCTS.DEFAULT_UCB_CMCTS.DEFAULT_SEEDMCTS.DEFAULT_VERBOSE_DEBUGMCTS.DEFAULT_VERBOSE_INFOMCTS.__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
MCTSNCMCTSNC.VARIANTSMCTSNC.DEFAULT_SEARCH_TIME_LIMITMCTSNC.DEFAULT_SEARCH_STEPS_LIMITMCTSNC.DEFAULT_N_TREESMCTSNC.DEFAULT_N_PLAYOUTSMCTSNC.DEFAULT_VARIANTMCTSNC.DEFAULT_DEVICE_MEMORYMCTSNC.DEFAULT_UCB_CMCTSNC.DEFAULT_SEEDMCTSNC.DEFAULT_VERBOSE_DEBUGMCTSNC.DEFAULT_VERBOSE_INFOMCTSNC.MAX_STATE_BOARD_SHAPEMCTSNC.MAX_STATE_EXTRA_INFO_MEMORYMCTSNC.MAX_STATE_MAX_ACTIONSMCTSNC.MAX_TREE_SIZEMCTSNC.MAX_N_TREESMCTSNC.MAX_N_PLAYOUTSMCTSNC.MAX_TREE_DEPTHMCTSNC.__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