use ncpig::prelude::*; use ncpig_testing::rolit::*; fn main() -> anyhow::Result<()> { env_logger::init(); let game = Rolit::new([RolitPlayer::Red, RolitPlayer::Green, RolitPlayer::Blue]); let state = RolitState::default(); let user = UserInput::default(); let random_bot = Random::new(); let mcts_bot = MonteCarloTreeSearch::::builder().build::(); let competition = Competition::new(&game, [&random_bot, &user, &mcts_bot], true); let finalstate = competition.play(state)?; for player in game.players() { println!("{player}: {}", game.score(player, &finalstate)?); } Ok(()) }