Skip to content

Commit fb0a556

Browse files
remove param passed into emptySqares()
1 parent 3052ad9 commit fb0a556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tictactoe/7/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function checkTie() {
8989
}
9090

9191
function minimax(newBoard, player) {
92-
var availSpots = emptySquares(newBoard);
92+
var availSpots = emptySquares();
9393

9494
if (checkWin(newBoard, huPlayer)) {
9595
return {score: -10};

0 commit comments

Comments
 (0)