summaryrefslogtreecommitdiff
path: root/cli/src/eval.rs
diff options
context:
space:
mode:
authorMike White <botahamec@outlook.com>2021-09-15 20:49:13 -0400
committerMike White <botahamec@outlook.com>2021-09-15 20:49:13 -0400
commit01b456b4fef8ce4a002f870e5385424614a2a5fb (patch)
tree6f44e7d775a7a77d9b0d5dcf13e25b35a25e9737 /cli/src/eval.rs
parentcbdd3f7be61f1040e84b757a5b8404378de3c46c (diff)
Added best move function
Diffstat (limited to 'cli/src/eval.rs')
-rw-r--r--cli/src/eval.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/src/eval.rs b/cli/src/eval.rs
index d078c5f..72fa32a 100644
--- a/cli/src/eval.rs
+++ b/cli/src/eval.rs
@@ -1,4 +1,8 @@
-use ai::CheckersBitBoard;
+use ai::{CheckersBitBoard, Move};
pub fn eval(depth: usize) -> f32 {
ai::eval(depth, 0.0, 1.0, CheckersBitBoard::starting_position())
}
+
+pub fn best_move(depth: usize) -> Move {
+ ai::best_move(depth, CheckersBitBoard::starting_position())
+}