Create a class TicTacToe that enables U to write a complete program to play d game tic-tac-toe. The class contains as private data a 3 by 3 double-subscripted array of integers. The constructor should initialize d empty board to all zeros. Allow 2 human players. Wherever the 1st player moves, place a 1 in the specified square. Place a 2 wherever the 2nd player moves. Each move must be to an empty square. After each move, determine whether d game has been won or is a draw. Allow an unlimited number of games until the user wishes to exit d program. Allow each player 2 enter his/her name before playin each game. At d end of d game, assign a score of 10 points - win, 5 - draw, and 0 - loss to each name %26amp; save d score to a file named 'highscore.dat’. At d end of each new game, add d player’s current score 2 any previously existing scores for dat player. Construct a basic Menu that allows d user the option to 1. Play the Game, 2. View the list of High Scores. 3 Exit the game.
Hey i need help wit a c++ project - creating a tic tac toe game?
That is lot of work, may be you can contact a c++ expert at websites like http://askexpert.info/
Reply:there is a lot of lofic, work and testing involved. No one here will help u unless theyhave the code ready in C++. Contact any C++ expert. but i think they will charge you. So its better to develop the logic by urselves.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment