Computers and Technology

Create a class tictactoe that will enable you to write a program to play tic-tac-toe. the class contains a private 3-by-3 two-dimensional array. use an enumeration to represent the value in each cell of the array. the enumeration's constants should be named x, o and empty(for a position that does not contain an x or an o). the constructor should initialize the board elements to empty. allow two human players. wherever the first player moves, place an x in the specified square, and place an o wherever the second player moves. each move must be to an empty square. after each move, determine whether the game has been won and whether it's a draw.

answer
Answers: 1

Similar questions

Do you know the correct answer?
Create a class tictactoe that will enable you to write a program to play tic-tac-toe. the class cont...

Questions in other subjects: