C Programming Write function updateHorizontal to flip the discs of the opposing player, it should do the following a. Return type void b. Parameter list i. int row ii. int col iii. char board[ROW][COL] iv. Structure Player (i.e. player) as a pointer c. If the square to the left or right is a space, stop checking d. If the square to the left or right is the same character as the player’s character, stop checking e. If the square to the left or right is not the same character as the player’s character, flip the disc (i.e. X becomes O, O becomes X) Write function updateVertical to flip the discs of the opposing player, it should do the following a. Return type void b. Parameter list i. int row ii. int col iii. char board[ROW][COL] iv. Structure Player (i.e. player) as a pointer c. If the square above or below is a space, stop checking d. If the square above or below is the same character as the player’s character, stop checking e. If the square above or below is not the same character as the player’s character, flip the disc (i.e. X becomes O, O becomes X)
C
Write function updateHorizontal to flip the discs of the opposing
player, it should do the following
a. Return type void
b. Parameter list
i. int row
ii. int col
iii. char board[ROW][COL]
iv. Structure Player (i.e. player) as a pointer
c. If the square to the left or right is a space, stop checking
d. If the square to the left or right is the same character as the
player’s character, stop checking
e. If the square to the left or right is not the same character as the
player’s character, flip the disc (i.e. X becomes O, O becomes X)
Write function updateVertical to flip the discs of the opposing player, it
should do the following
a. Return type void
b. Parameter list
i. int row
ii. int col
iii. char board[ROW][COL]
iv. Structure Player (i.e. player) as a pointer
c. If the square above or below is a space, stop checking
d. If the square above or below is the same character as the player’s
character, stop checking
e. If the square above or below is not the same character as the
player’s character, flip the disc (i.e. X becomes O, O becomes X)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 5 images