Hello, I've been trying to work on this Tic Tac Toe game for my school assignment, but it's not detecting any win when any player gets 3 in a row in any way.
I have 2 functions that checks the board for a win and one that checks if a player did win:
// check for win
void checkWin(char b[][NUM_COL], Player player[], bool& activeGame, int activePlayer)
{
/* the code */
}
// checks the board
void checkBoard(char b[][NUM_COL], Player player[], bool& activeGame, string playerName, char playerSymbol)
{
/* the code */
}
The two functions are at the very bottom.
The Hastebin: https://hastebin.com/biwazumegu.cpp
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.