add argument for elo

This commit is contained in:
Simon Gardling 2025-04-20 01:54:06 -04:00
parent 83b56101d9
commit 4120c4e7fb
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -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,