Reference no: EM132207441
Write a program that will allow two users to play a tic-tac-toe game.
You should write the program such that two people can play the game without any special instructions (assume they know how to play the game).
Prompt first player(X) to enter their first move.
Then draw the gameboard showing the move.
Prompt the second player(O) to enter their first move.
Then draw the gameboard showing both moves.
And so on through 9 moves. You will need to:
1) Test each move to see if that space is still available.
2) After each move, check to see if someone has won the game yet
3) After 9 moves, if there is not winner declare a draw. You must use functions to Test each move to see if it's a valid move
Check to see if someone has won.