Using C++ ..... You should start by downloading the tictactoe_final.cpp program:
ID: 3601470 • Letter: U
Question
Using C++ .....
You should start by downloading the tictactoe_final.cpp program:
*******************************************************************************
*******************************************************************************
This program is finished but the computer player is not very strategic and relies only on random guesses to determine the next move:
} }
}
First, rewrite the above code so that the determination of the next computer move is done in a separate function. After the rewrite the above code should look like:
Next, make the determination of a move in the new generateComputerMove() function more strategic (Hint: you can add rules instead of always just determining a random move).
Explanation / Answer
*******************************************************************************
This program is finished but the computer player is not very strategic and relies only on random guesses to determine the next move:
} }
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.