Question: Need help with C++ program. I'm new to writing code and i have no clues how to start this. Creat a Tic Tac Toe game

Need help with C++ program.

I'm new to writing code and i have no clues how to start this.

Creat a Tic Tac Toe game with a player vs computer using randon number for computer (WITHOUT ARRAY) 'x' and '0'

-Create a function to draw the tic-tac-toe board 3x3.

-Create a function to check the input is within the valid range. 1-9, anything out of range will be invalid input and should end the program.

-Create a function to check the designated space is available . if the space is already use, asking the player to pick a different number.

-Create a function to check if we have a winner (and the program should end). the program should check if there a winner everything there a play and if not the game continue and if there a winner, the game should end.

-Create a main() program main() will play the complete Tic-Tac-Toe game including all the fore mentioned functions. Other function may be added as needed but are not required.

Again Array can not be use in this program.

please screenshot the result. i have posted another question for the whole instruction for this.

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!