[−][src]Function cppconnect6::cpp_play_with
#[no_mangle]pub extern "C" fn cpp_play_with(
callback: Callback,
cpp_alloc_path: AllocatorType<RawPath>,
num_simulation: i32,
epsilon: f32,
dirichlet_alpha: f64,
c_puct: f32
) -> RawPlayResult
Returns Connect6 results with given cpp policy and user selection as io_policy
Arguments
callback
- callback for cppbind, void(int player, float* values, float* boards, int length).cpp_alloc_path
- cppbind::RawPath allocator for obtaining memory from cpp ffi.num_simulation
- i32, number of simulations for each turn.epsilon
- f32, ratio for applying exploit, exploration. lower epsilon, more exploit.dirichlet_alpha
- f64, hyperparameter for dirichlet distribution.c_puct
- f32, ratio of q-value and puct, hyperparameter of AlphaZero MCTS.