X-Git-Url: http://git.scottworley.com/pluta-lesnura/blobdiff_plain/2d3998b9d91b9016dd41fa871a2e2d9e2c15180a..c5e4b1eb46c33d636e95f3dbbbdf0bb15ce5d2ef:/src/main.rs diff --git a/src/main.rs b/src/main.rs index b2924ee..31d9587 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ use clap::{Parser, Subcommand, ValueEnum}; -use pluta_lesnura::{momentum_player, play, random_player, Game, Player}; +use pluta_lesnura::{momentum_player, play, random_player, Game}; #[derive(Parser)] #[command(author, version, about, long_about = None, arg_required_else_help = true)] @@ -44,8 +44,8 @@ fn main() -> Result<(), &'static str> { strategy, }) => { let player = || match strategy { - Strategy::Random => Player::new(random_player(*draw_chance)), - Strategy::Momentum => Player::new(momentum_player(*draw_chance)), + Strategy::Random => random_player(*draw_chance), + Strategy::Momentum => momentum_player(random_player(*draw_chance)), }; for _ in 0..*num_games { let players: Vec<_> = std::iter::from_fn(|| Some(player()))