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