1234567891011
} while (!win); cout << " do you want to play again ? (y/n)"; cin >> answer; } while (toupper(answer) == 'Y');
123456789101112131415
// Class Select Player* playerOne = new UNITS(" UNSC "); Player* playerTwo = new UNITS(" COVENANT "); // Coin Toss to Determine Who Goes First Player *currentPlayer, *targetPlayer, *tempPlayer; int coin = rand() % 2; if (coin) { currentPlayer = playerOne; targetPlayer = playerTwo; } else { currentPlayer = playerTwo; targetPlayer = playerOne; }