dhgamache/Tic-Tac-Toe-JS — comment on commit dfe71893976cd104bad4795e7c55da7771a369c4
File: tictactoe.js line 80
By marcusphillips:

You do and you don't. It would be interesting to read and understand, but in my opinion you shouldn't need this algorithm to begin with. If you'd like to try modifying this program around the suggestion above (about representing the game in terms of board state, and finding win patterns dynamically at move time), let's just pair on it in the near future. And either way though, I'll be happy to step through this code with you so it isn't a black box.