From 744050c4b4747ac4645480e2f4a935a027b8350f Mon Sep 17 00:00:00 2001 From: Mike White Date: Mon, 6 Sep 2021 08:02:51 -0400 Subject: Alpha-beta pruning --- cli/src/main.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'cli/src/main.rs') diff --git a/cli/src/main.rs b/cli/src/main.rs index 57991f0..a550092 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -47,7 +47,16 @@ fn main() { ); } - if let Some(_matches) = matches.subcommand_matches("eval") { - println!("{}", eval::eval()); + if let Some(matches) = matches.subcommand_matches("eval") { + println!( + "{}", + eval::eval( + matches + .value_of("depth") + .unwrap() + .parse::() + .expect("Error: not a valid number") + ) + ); } } -- cgit v1.2.3