olor.cpp- Edtor-WinSCP dinclude ciostream include using namespace std; const int
ID: 3741499 • Letter: O
Question
olor.cpp- Edtor-WinSCP dinclude ciostream include using namespace std; const int NUM OF COLLUM - 6; const char header[l- "ABCOE bool no more soves - false; enn GaaeValues (AVAILABLE-1, RED-2 , BLUE-3 ); bool updateGameBoard (GameValues game board[I[NUM OF_COLLUM), int NUM OF ROWS,bool user, int col nane) bool is game over true; no more moves false; bool is,space false; if(gane board[1][j]--AVAILABLE){ sspace true; break f(lis space)f ?more noves-true; return true old printianeBoard(Gamevalues game-board[][NUM OF-COLLUM], ?nt NUM OF ROS coutExplanation / Answer
You have missed closing '}' (flower brackets at the end of 2 functions. At the end of "updateGameBoard()" and "printGameBoard()"
Under updateGameBoard() update the if statement and return statement as follows:
bool updateGameBoard(........) {
.
.
.
.
if(!is_space)
no_more_moves = true;
return no_more_moves;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.