SHARE
TWEET

Untitled

a guest Jun 17th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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] << "  |  " << field[1] << "  |  " << field[2] << endl;
  11.  
  12.     cout << "_____|_____|_____" << endl;
  13.     cout << "     |     |     " << endl;
  14.  
  15.     cout << "  " << field[3] << "  |  " << field[4] << "  |  " << field[5] << endl;
  16.  
  17.     cout << "_____|_____|_____" << endl;
  18.     cout << "     |     |     " << endl;
  19.  
  20.     cout << "  " << field[6] << "  |  " << field[7] << "  |  " << field[8] << endl;
  21.  
  22.     cout << "     |     |     " << endl << endl;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top