64122017/U-and-D — Issue #9: Code simplify 
Author: uthayam
Created: 2012-01-14 12:05:51+00:00
State: open

Hi, You know the method updateScoreboard in the player class. Can you simply the code by removing the else statement to make it more efficient?

public void updateScoreboard (boolean win) {
this.gamesPlayed++;
if (win) {
this.gamesWon++;
if (totalScore > highestScore){
this.highestScore = this.totalScore;
}
}
}