All Questions
3
questions
2
votes
1
answer
276
views
Avoiding nested loops in a TicTacToe algorithm JavaScript
I wrote a quick algorithm that detects a win in a TicTacToe Game.
fn game() loops through a simulated ticTacToe board, finds all ...
1
vote
1
answer
110
views
Tic Tac Toe Algorithm revisited
I had previously submitted a tic tac toe code. I followed some of the changes suggested. This is my new code.
...
2
votes
1
answer
618
views
Algorithm for Tic Tac Toe
Currently, I am using an algorithm that finds the best move based on the existing states of the board. Is there a better way to do it? Is there a data structure that I can use?
I have also considered ...