no pointers!!!!!! A software company that develops games has just hired you! Bef
ID: 642409 • Letter: N
Question
no pointers!!!!!!
A software company that develops games has just hired you! Before working on the next version
of Medieval Menace they have given you the task of implementing the tic-tac-toe game in C++.
Tic-tac-toe consists of 3x3 game board of squares whether each square is either empty, has an X
marker, or has an O marker. Two players represented by an X or an O play the game. The
objective is for one player to get three Xs or three Os in a row first.
Design, implement, and test a TTT ADT as a C++ class that represent a tic-tac-toe game
board as well as the X and O markers. Your class should provide suitable observer and mutator
methods for modifying the game board and displaying the state of the game. An example ttt.h file
is attached. You may download this file from the course web page as well.
Use your class to create a game that prompts for player X and player O to place
Explanation / Answer
TTT.cppp
TTT.h
main.cpp
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.