There was an error while loading. Please reload this page.
1 parent 23f1b90 commit cc17581Copy full SHA for cc17581
src/main/java/main/java/MinMax.java
@@ -168,9 +168,10 @@ private static class BoardMove implements Comparable<BoardMove> {
168
final int strength;
169
170
private BoardMove(final Move move, final Board board, final int player) {
171
- this.board = board.makeMove(move);
+ final Move moveToBeMade = Board.ALL_MOVES[player][move.x][move.y];
172
+ this.board = board.makeMove(moveToBeMade);
173
this.strength = this.board.heuristicValue(player);
- this.move = move;
174
+ this.move = moveToBeMade;
175
}
176
177
@Override
0 commit comments