Discussion:
Q: Tic tac toe is played on a 3x3 grid,Which is initially empty.Each of two players goes in turn.The winner is the person who gets a line of three noughts or three crosses.Games can end in a draw,where niether side has obtained a line.Create a program to play the game.One player is computer,which plays as noughts and which decides where to play on a random basis. There is just one button -to start a new game.the human player specifies a move by clicking with the mouse on the place where the cross is to be placed.