Question
BASIC C++ PLEASE !! Using the previously submitted flowchart or a Structure chart ofa Tic Tac Toe game code the Tic Tac Toe game. The
BASIC C++ PLEASE !!
Using the previously submitted flowchart or a Structure chart ofa Tic Tac Toe game code the Tic Tac Toe game.
The game will allow the human to choose a square on a Tic TacToe Game board and place an X marker in thatsquare.
The computer will use a Random number generator and randomlyfind and place a computer token in an unoccupiedsquare.
The game stops if it is a tie game.
the game stops if the human or the computer wins and reports whoone ( computer or human).
Note the flowchart or the structure chart must be done beforecoding begins.
Code Style : the more functions the better. Do not submitone monolith of code. I will grade on FunctionalDecomposition.
HInt: ( By the way if you ignore my hint I willdeduct ) Hint. I expect to see 3 to 10functions. So break the task into subtasks,etc.
Requirement: you must use a 2 dimensional matrix to hole thepieces ( tokens ) . Project will be rejected if you usea one dimensional array. No VECTORS!
Ergonomic Requirements, Please make the display andthe user prompts and response nice. I will grade onit.
If you want to improve the ergonomics here is a beep soundeffect that is easily done on Windows:
#include
#include // WinApi header
using namespace std;
int main()
{
Beep(523,500); // 523 hertz (C5) for 500milliseconds
//cin.get(); // wait
return 0;
}
Step by Step Solution
3.38 Rating (148 Votes )
There are 3 Steps involved in it
Step: 1
include include using namespace std int statusCheckwin char void checkBoard char int main char squar...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