summaryrefslogtreecommitdiff
path: root/cli/src/main.rs
diff options
context:
space:
mode:
authorMike White <botahamec@outlook.com>2021-09-06 08:02:51 -0400
committerMike White <botahamec@outlook.com>2021-09-06 08:02:51 -0400
commit744050c4b4747ac4645480e2f4a935a027b8350f (patch)
tree07d3bd4a73e08cf00379a2df3f0165f4e856e279 /cli/src/main.rs
parent3df9c8a9a2f9274e863785fc9a7b196fe20ee87d (diff)
Alpha-beta pruning
Diffstat (limited to 'cli/src/main.rs')
-rw-r--r--cli/src/main.rs13
1 files changed, 11 insertions, 2 deletions
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::<usize>()
+ .expect("Error: not a valid number")
+ )
+ );
}
}