Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is everything the code came with its all the files. can someone please help me find the errors? for the two #includes at the

this is everything the code came with its all the files. can someone please help me find the errors? for the two #includes at the top the extra files are empty anyway so you can just not add them in. image text in transcribed
image text in transcribed
image text in transcribed
Toe.cpp - X Tiscellaneous Files (Global Scope) // TicTacToe.cpp: Follow along with the comments to create a fully functional Tic Tac Toe game // that uses function calls. Each function will get called multiple times during the execution 1 of the code, however, the code itself only needed to be written once. Also notice the use of 17 an array to store the contents of the board. The comments marked with a TODO denote where code // needs to be added. Buinclude "stdafx.h" #include using namespace std; char boardTile[10] - [ 'o', ' I write the function declarations bool checkvalidMove(int); void drawBoard(); //TODO: Write the declaration for the function that checks for a winner Sint main() int player - 1, i, choice; char mark; bool is MoveValid = false; do 1/1000: Call the function that draws the game board player - (player % 2)? 1 : 2; cout > choice; mark - (player - 1)? 'X':'0'; " // TODO: Call the checkValidove function, make sure to save the return value in one of the variables if (isMovevalid) { boardTile[choice] - mark; elsel cout O choice

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

Students also viewed these Databases questions

Question

What methods do communication scholars use to conduct research?

Answered: 1 week ago