commit a551afc5bdfc6b7045365fac8b37c49bdd103ce1
parent c10d83b7227cde70faaeb948068a9393cdb52fce
Author: sej <sej@sejdt.localhost>
Date: Thu, 24 Oct 2024 16:31:20 +0200
BestMove()
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Minimax.cs b/Minimax.cs
@@ -90,6 +90,7 @@ public class Minimax {
* Returns the best move for the next player's turn on the given board.
*/
public static int BestMove( Board board, int depth ) {
- return 0;
+ MinimaxTree tree = new MinimaxTree( board, depth );
+ return tree.BestMove();
}
}