Question: Hello, I need help with writing a basic tic tac toe game in C++ under several conditions. 1. You cannot use arrays or vectors for

Hello, I need help with writing a basic tic tac toe game in C++ under several conditions.

1. You cannot use arrays or vectors for this project.

2. Ask the user to flip a coin to determine who (either the user or the computer) should play first.

3. Ask the user (or the first player) to choose their own marker, between X and O.

4. Create separate .h and .cpp files for each function.

5. Create a function to draw the tic tac toe board

6. Create a function to check the input is within the valid range

7. Create a function to check the designated space is available

8. Create a function to check if we have a winner (in which case the program should end)

9. Create a main function that will call all these functions (and more if necessary) to play tic tac toe

10.Make sure to display the position that the computer chooses after each of the computers turns, as shown in the example on the previous page.

I have included some of the example screenshots! hope it helps.

And thank you very much!

Hello, I need help with writing a basic tic tac toe game

in C++ under several conditions. 1. You cannot use arrays or vectors

for this project. 2. Ask the user to flip a coin to

determine who (either the user or the computer) should play first. 3.

CAUsersWshcieeWDocumentsAVisual Studio 2015 ProjectsWProjectivDebugNProjecti.exe Welcome to the game of Tic Tac Toe Below you will indicate your position (1 9) as shown in the table Tic Tac Toe User (x) Computer (0) 1 2 3 4 I 5 I 6 7 8 9 Enter your position

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!