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!
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started