Question: should be a c++ language Exercise #5-TTT (10pts*) The game TTT is a two player game where each player trades moves across a 3 x

 should be a c++ language Exercise #5-TTT (10pts*) The game TTT

should be a c++ language

Exercise #5-TTT (10pts*) The game TTT is a two player game where each player trades moves across a 3 x 3 game grid. One player designates their move with an X whereas the other player designates their move with an O. When one player has three of their marks placed in a line, that player has won the game. If all nine squares in the grid are filled and neither player has three symbols matching in a row, that game is considered tied. Consider the following game scenario between a red and a blue opponent. tttta // Figure 1: A sample TTT configuration In the above figure, the blue player won the game since the bottom horizontal row has three of the same symbol in each square. Please note that there are eight matching rows where victory can be determined (three horizontal, three vertical and two diagonal.) For this exercise you will implement the same game in C++. You may use either arrays or vectors to hold moves as the game board Points will be awarded for this exercise as follows: .10 points generate a game board with three randomly placed symbols output the game board with the placement of each symbol o o 10 points + 10 extra credit points A playable game of TTT, where the player trades moves with the computer opponent (players moves can be entered by asking the user for the row and column to be placed.) o .10 points + 20 extra credit points All of the above requirements except the game should be implemented so that the player will never be able to defeat the computer opponent in a game of TTT (please note that the o Last Modified: 10/26/17 game can be completed to a tie.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!