Question: Students will create a TTT game using the console app. Requirements: 1. The playing screen will be at least 40 x 40, be divided into

Students will create a TTT game using the console app.

Requirements:

1. The playing screen will be at least 40 x 40, be divided into nine squares and have a number in the top center or each square relevant to their location. (see above)

2. The xs and ox will occupy a significant portion of each square when the game decides to create them in the appropriate square

3. Game data (whether X or O was chosen for each square) will be stored in a 3x3 array.

4. The game must be designed so that only the integers 1 10 will be accepted as input.

5. The following functions must be present (passed parameters decided by coder): a. void draw_board() b. void draw_x() c. void draw_y() d. void place_marker() - must pass pointer to game matrix. - must use a switch to place the appropriate marker. e. void check_for_win() - must use for loops to determine if a move won game.

6. Other functions can be added as need especially the gotoxy() function.

7. Student should upload the .c file on the Google Drive.

8. NO GLOBAL VARIABLES ARE ALLOWED TO BE USED. GLOBAL CONSTANTS ARE OK.

9. The game will be run as expected. It will be opened to the game board and the command line at the bottom. Input will be in integers, you do not have to account for non integer input. If the box has already been chosen, obviously it cannot be used again and the player should be informed of this and asked to make a new choice. After the appropriate number of inputs by players (you are not playing against the computer) the game should be checked for a victor. If a victory occurs, the users should be told who won and offered the choice of playing again or exiting.

Help please  Students will create a TTT game using the console app. Requirements:

Requirements 1. The playing sceen will be ar least 40 , be divided inte ine squanes and have amumber in the sap each squareevantto their location (oe above) 2.Thex'' andexwe occupy augtam portion oreach swa when megame decides oo erenemem in the approprate Game det whether K 4 The game must be designed so that anly the integers 1-10 will be eped as input for each squarelwillbe be storedia 8. NO GLOBAL VARIABLES ARE ALLOWED TO BE USED. GLOBAL CONSTANTS ARE OK. 9 the game ame board and sers should be

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!