Fix best move in FFI

This commit is contained in:
nora 2023-01-28 09:56:40 +01:00
parent 545cb5dce3
commit 6b309efd32
2 changed files with 5 additions and 8 deletions

View file

@ -74,7 +74,7 @@ pub fn play_move(env: JNIEnv<'_>, current_player: i8, board: JObject<'_>) -> i32
};
player.next_move(&mut board, current_player_rust);
let result_move = player.best_move();
let result_move = player.best_move(&board);
board.undo_move(result_move);
let result_move = board.drop_player(result_move);