|
|
Subject:
Tic Tac Toe code with c++
Category: Computers > Programming Asked by: atishpanje-ga List Price: $15.00 |
Posted:
27 Apr 2005 07:32 PDT
Expires: 27 Apr 2005 19:06 PDT Question ID: 514894 |
i need interactive program that plays tic-tac-toe. Represent the board as a 3 X 3 character array. Initialize the array to contain blanks and ask each player in turn to input a position. The first player's position is marked X and the second player with an O. Continue to process until there is a winner or there is a draw. Each player's position should be inputted as indexes into the tic-tac-toe board, that is, a row number a space and a column number (e.g., 1 3). After each move you print the game board showing each player's move , Keep a count of the number of games each player has won and the number of draws. If a player wishes to quit then print the statistics . | |
|
|
There is no answer at this time. |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |