Advertisement
akosiraff

Tic Tac Toe C++

Oct 16th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/tic-tac-toe-c/
  3. Using C++ (one-dimensional arrays) I have to build a Tic- Tac-Toe game where a human is playing against the computer. The program requirements are:
  4. 1. Validate user input at every opportunity.
  5. a. Do not allow number entries less than 0
  6. b. Do not allow number entries greater than 8
  7. c. Do not allow non-numeric entries
  8. 2. Do not use global variables in the development of the program
  9. 3. You may use global constants in the development of the program
  10. 4. Use one-dimensional arrays to keep track of the game:
  11. a. Computer moves
  12. b. Human moves
  13. 5. Use functions to pass arrays and implement other program requirements.
  14. 6. The program must be developed using functions so that the main() function consists mostly of function calls
  15. 7. Computer must be aggressive and take every opportunity to win the game if and when the human makes errors
  16. 8. The main() function must use a loop to keep the user in the program until he/she wants to quit.
  17.  
  18. Download: http://solutionzip.com/downloads/tic-tac-toe-c/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement