C Programming Write function checkHorizontal to count how many discs of the opposing player would be flipped, it should do the following a. Return type integer b. Parameter list i. int row ii. int col iii. char board[ROW][COL] iv. char playerChar 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, save that it was a flank, stop checking e. If the square to the left or right is not the same character as the player’s character, count the disc f. If the counted discs is greater than zero AND the player found their own character, return the counted discs, otherwise return ZERO Write function checkVertical to count how many discs of the opposing player would be flipped, it should do the following a. Return type integer b. Parameter list i. int row ii. int col iii. char board[ROW][COL] iv. char playerChar 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, save that it was a flank, stop checking e. If the square above or below is not the same character as the player’s character, count the disc f. If the counted discs is greater than zero AND the player found their own character, return the counted discs, otherwise return ZERO
C
Write function checkHorizontal to count how many discs of the
opposing player would be flipped, it should do the following
a. Return type integer
b. Parameter list
i. int row
ii. int col
iii. char board[ROW][COL]
iv. char playerChar
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, save that it was a flank, stop checking
e. If the square to the left or right is not the same character as the
player’s character, count the disc
f. If the counted discs is greater than zero AND the player found
their own character, return the counted discs, otherwise return
ZERO
Write function checkVertical to count how many discs of the opposing
player would be flipped, it should do the following
a. Return type integer
b. Parameter list
i. int row
ii. int col
iii. char board[ROW][COL]
iv. char playerChar
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, save that it was a flank, stop checking
e. If the square above or below is not the same character as the
player’s character, count the disc
f. If the counted discs is greater than zero AND the player found
their own character, return the counted discs, otherwise return
ZERO
![| A | B | C | D | E | F | G | H
1
|
I
|
I
I
I
| I
2 |
I
|
3 |
I
| |
|
|
I
| 4 |
I
| x | x | x |
| |
| 5 |
I
|
| x | 0 |
I |
6 |
I |
I I I
|
I
7 |
I
|
| |
8 |
I
|
|
|
I |
| |
|](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7d4fd4d4-77c7-4e93-950b-25099f54e660%2Fe8fb08f9-fa92-47f7-81be-d3f1207edd91%2Feo4u8ep_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 5 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)