[][src]Trait connect6::policy::Policy

pub trait Policy {
    fn next(&mut self, game: &Game) -> Option<(usize, usize)>;
}

trait for playing game with Agent.

Required methods

fn next(&mut self, game: &Game) -> Option<(usize, usize)>

generate next selection

Loading content...

Implementors

impl Policy for AlphaZero[src]

fn next(&mut self, game: &Game) -> Option<(usize, usize)>[src]

Select next position with AlphaZero policy

impl Policy for DefaultPolicy[src]

fn next(&mut self, game: &Game) -> Option<(usize, usize)>[src]

Select position based on pure MCTS.

impl Policy for RandomPolicy[src]

fn next(&mut self, game: &Game) -> Option<(usize, usize)>[src]

make random selection

impl<'a, 'b> Policy for IoPolicy<'a, 'b>[src]

fn next(&mut self, _game: &Game) -> Option<(usize, usize)>[src]

validate user input from stdin and passing it to Agent

impl<'a, 'b> Policy for MultiPolicy<'a, 'b>[src]

fn next(&mut self, game: &Game) -> Option<(usize, usize)>[src]

Condition on game.turn to pass policy seperately

Loading content...