1 use clap::{Parser, Subcommand};
2 use pluta_lesnura::{play, random_player, Game, Player};
5 #[command(author, version, about, long_about = None, arg_required_else_help = true)]
8 command: Option<Commands>,
21 fn main() -> Result<(), &'static str> {
22 let cli = Cli::parse();
25 Some(Commands::Sim { num_players }) => {
26 let players: Vec<_> = std::iter::from_fn(|| Some(Player::new(random_player)))
29 let mut game = Game::default();
30 for _ in 0..*num_players {
33 let result = play(game, players)?;
34 println!("Result: {result:?}");
37 None => unreachable!(),