Write a GUI-based program that allows the user to play a game of tictac-toe with the computer. The main window should display a 3 by 3 grid of empty buttons. When the user presses an empty button, an X should appear. The computer should then respond by checking for a winner, and then placing an O on an empty button if there is no winner. The computer should then check for a winner again. A Reset button should reset the game and the window to their initial state. Allow the computer to place its mark on a randomly chosen button.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here