Check Diagonals for a Win
Learn how can check if the players wins diagonally.
We'll cover the following...
What we have
We have defined the caller of this function. Here is its snap for ready reference.
Press + to interact
bool checkWin(char board[], char player) {if (checkWinLine(board, player) || checkWinDiagonal(board, player) == true) {return true;}else {return false;}}
Requirements of this module
The function checkWinDiagonal()
should perform the ...