Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. void PrintPlayField(char field[][])
  2. {
  3. system("cls");
  4. cout << "\n\n\tTic Tac Toe\n\n";
  5.  
  6. cout << "Player 1 (X) - Player 2 (O)" << endl << endl;
  7. cout << endl;
  8.  
  9. cout << " | | " << endl;
  10. cout << " " << field[0][0] << " | " << field[0][1] << " | " << field[0][2] << endl;
  11.  
  12. cout << "_____|_____|_____" << endl;
  13. cout << " | | " << endl;
  14.  
  15. cout << " " << field[1][0] << " | " << field[1][1] << " | " << field[1][2] << endl;
  16.  
  17. cout << "_____|_____|_____" << endl;
  18. cout << " | | " << endl;
  19.  
  20. cout << " " << field[2][0] << " | " << field[2][1] << " | " << field[2][2] << endl;
  21.  
  22. cout << " | | " << endl << endl;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement