Function board_game::util::bot_game::run

source ·
pub fn run<B: Board, L: Bot<B> + Debug, R: Bot<B> + Debug>(
    start: impl Fn() -> B + Sync,
    bot_l: impl Fn() -> L + Sync,
    bot_r: impl Fn() -> R + Sync,
    games_per_side: u32,
    both_sides: bool,
    callback: impl Fn(WDL<u32>, &Replay<B>) + Sync
) -> BotGameResult<B>
Expand description

Run bot_l against bot_r against each other on the board given by start.

games_per_side games are run, except if both_sides is true, in which case a match consists of two games per start position where players switch sides.

Progress indications can be displayed at intervals of print_progress_every.