A099 - Exp 4
A099 - Exp 4
int main()
{
// Initialize the board and players
char board[3][3] = { { ' ', ' ', ' ' },
{ ' ', ' ', ' ' },
{ ' ', ' ', ' ' } };
char player = 'X';
int row, col;
int turn; // Declare turn here
// Game loop
for (turn = 0; turn < 9; turn++) {
// Draw the board
drawBoard(board);