It looks like you're new here. If you want to get involved, click one of these buttons!
i've made a tictactoe game and then i made a AI for the game.but its not working correctly.
expected result :- pick a place to win the game or not let the opponent win the game.
given result :- pick the first available spot from the board array.
here is the script that controls everything.
any help will be appreciated...