subject

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
Which demographic challenge is europe currently experiencing? a. an aging and decreasing population b. a baby boomc. an unequal distribution between males and females d. a large group of teenagers moving through the school system(i chose a but i'm unsure)
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
You know the right answer?
Create a class tictactoe that will enable you to write a program to play tic-tac-toe. the class cont...
Questions
question
Computers and Technology, 30.10.2020 14:00
question
Mathematics, 30.10.2020 14:00
question
History, 30.10.2020 14:00
question
Social Studies, 30.10.2020 14:00
question
Biology, 30.10.2020 14:00
Questions on the website: 13722363