public void WonPoint(string playerName) { if (playerName == player1.Name) { player1.WonPoint(); } else { player2.WonPoint(); } }
public void WonPoint(string playerName) { if (playerName == PLAYER_ONE) { playerOne.WonPoint(); } else { playerTwo.WonPoint(); } }