add argument for elo
This commit is contained in:
parent
83b56101d9
commit
4120c4e7fb
@ -15,6 +15,9 @@ pub mod repr;
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(author, version, about, long_about = None)]
|
||||
struct Args {
|
||||
#[arg(short = 'e', long = "elo", default_value = "false")]
|
||||
test_elo: bool,
|
||||
|
||||
/// Agent for Black (c=complex, m=manual, r=random) [default: c]
|
||||
#[arg(short = 'b', long = "black", default_value = "c", value_parser = ["c", "m", "r"])]
|
||||
black_agent: String,
|
||||
@ -26,6 +29,10 @@ struct Args {
|
||||
|
||||
fn main() {
|
||||
let args = Args::parse();
|
||||
if args.test_elo {
|
||||
elo::run();
|
||||
return;
|
||||
}
|
||||
|
||||
let future_config = FutureMoveConfig {
|
||||
max_depth: 20,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user