subject

In a game of tic-tac-toe, two players take turns marking an available cell in a 3 x 3
grid with their respective tokens (either x or o). When one player has placed three
tokens in a horizontal, vertical, or diagonal row on the grid, the game is over and
that player has won. A draw (no winner) occurs when all the cells on the grid have
been filled with tokens and neither player has achieved a win. Create a program for
playing tic-tac-toe.
The program prompts two players to enter an x token and o token alternately.
Whenever a token is entered, the program redisplays the board on the console and
determines the status of the game (win, draw, or continue). Here is a sample run:

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
Which of the following is not a source of sustainable raw materials? a) coal mine b) flick of sheep c) cotton plantation d) line forest.
Answers: 2
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
question
Computers and Technology, 24.06.2019 07:00
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
question
Computers and Technology, 24.06.2019 08:10
Where are american poets found in the dewey decimal system
Answers: 1
You know the right answer?
In a game of tic-tac-toe, two players take turns marking an available cell in a 3 x 3
grid wit...
Questions
question
English, 02.10.2019 03:30
Questions on the website: 13722363