Guest User

Untitled

a guest
Nov 20th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1.         while(playing){
  2.             playing = false;
  3.             for(int i = 0; i < playerAmount; i++){
  4.                 *currentPlayer = *players[i];
  5.                 cout << "Current player " << currentPlayer->getName() << " players[i] = " << players[i]<< endl;
  6.                 if(currentPlayer->isPlaying()){
  7.                     playing = true;
  8.                     cout << "i = " << i << endl << currentPlayer->getName() << "("<<currentPlayer<<")>";
  9.                     cin >> playerInput;
  10.                     cout << endl;
  11.                     currentPlayer->setPlaying(processInput(playerInput));
  12.                 }
  13.             }
  14.         }
Add Comment
Please, Sign In to add comment