Skip to main content

All 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 ...
Ben_Sven_Ten's user avatar
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. ...
leoOrion's user avatar
  • 387
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 ...
leoOrion's user avatar
  • 387