subject

Write a function named "get_winer" that determines who has won a game of tic-tac-toe. The function should first check all rows to see whether one player occupies all the cells in one row, next check all columns, and then check the two diagonals. The function takes a two dimensional character array which represents the state of the game (filled with 'O' and 'X') and returns 0 or 1 or 2 ( 0 for draw, 1 for player one ('O') wins and 2 for player 2 ('X') wins) (Using C program)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Which of the following statements correctly identifies a problem with sanitization methods? a. methods are not available to remove data ensuring that unauthorized personnel cannot retrieve data.b. even fully incinerated media can offer extractable data.c. personnel can perform sanitization steps improperly.d. stored data is physically etched into the media.
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
The isometric projection camera technique provides an illusion of perspective by using things like parallax scrolling to create the illusion of 3d in a 2d game
Answers: 3
question
Computers and Technology, 22.06.2019 18:00
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
question
Computers and Technology, 23.06.2019 00:00
What season was better from fortnite?
Answers: 2
You know the right answer?
Write a function named "get_winer" that determines who has won a game of tic-tac-toe. The function s...
Questions
question
Mathematics, 13.04.2021 21:20
question
English, 13.04.2021 21:20
question
History, 13.04.2021 21:20
question
Mathematics, 13.04.2021 21:20
question
Mathematics, 13.04.2021 21:20
question
Biology, 13.04.2021 21:20
question
Mathematics, 13.04.2021 21:20
question
Mathematics, 13.04.2021 21:20
question
Mathematics, 13.04.2021 21:20
Questions on the website: 13722365