(Solved):#include #include using namespace std; int checkwin(char square[]); void board(string player1Name, string player2Name, char square[]); bool validateUseInput(char input[]); bool validatePlayerName(s… View Answer…

 

Question

  1. include #include using namespace std; int checkwin(char square); void board(string player1Name, string player2Name, char square); bool validateUseInput(char input); bool validatePlayerName(string playerName); int main() { char userChoice; do { int player = 1, i, choice; char square[9] = { ‘0’,’1′,’2′,’3′,’4′,’5′,’6′,’7′,’8′ }; string player1Name; string player2Name; cout << “Enter Player 1 Name:n”; while (true) { cin >> player1Name; bool valid = validatePlayerName(player1Name); if (valid) break; else { cout << “–Invalid
Scroll to top