Skip to content

Conversation

@Tilakg05
Copy link

tBoard myGame;
cout << "Hello! Welcome to Tic-Tac-Toe" << endl;

//Create an array to hold my 2 values
string player[2];

//Get the Payer Names
cout << "What is the name of the player going first (X)?" << endl;
getline(cin,player[0]);
cout << player[0] << " is X " << endl;

cout << "What is the name of the player going second (O)?" << endl;
getline(cin,player[1]);
cout << player[1] << " is O " << endl;

 tBoard myGame;
   cout << "Hello! Welcome to Tic-Tac-Toe" << endl;
  
   //Create an array to hold my 2 values
   string player[2];
  
   //Get the Payer Names
   cout << "What is the name of the player going first (X)?" << endl;
   getline(cin,player[0]);
   cout << player[0] << " is X " << endl;
  
   cout << "What is the name of the player going second (O)?" << endl;
   getline(cin,player[1]);
   cout << player[1] << " is O " << endl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant