mirror of
https://github.com/Noratrieb/minmax.git
synced 2026-01-14 15:25:08 +01:00
Fix best move in FFI
This commit is contained in:
parent
545cb5dce3
commit
6b309efd32
2 changed files with 5 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue