Skip to content

Commit

Permalink
Notes and remove cruft in ai.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rjcorwin committed Oct 26, 2018
1 parent aa9303f commit a6f8a2d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/ai.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function ai(state) {
let potentialMoves = []
let matrix = cellsToGrid(state.cells)
for(let i = 0; i < matrix[0].length; i++) {
// TODO: Make this random and protect against columns we can't enter.
// TODO: Protect against columns that are full.
potentialMoves.push(i)
}
// Find moves that do not result in the opponent having a winning move.
Expand Down Expand Up @@ -59,9 +59,4 @@ function findWinningMoves(state) {
return winningMoves
}

function opponentWillHaveWinningMove() {
// TODO
return false
}

export { ai }

0 comments on commit a6f8a2d

Please sign in to comment.