Exemplo n.º 1
0
 private void setScore(ScoreRow scoreRow, int? points)
 {
     if (game.CurrentPlayer == game.PlayerOne) scoreRow.ScorePlayerOne = points;
     else scoreRow.ScorePlayerTwo = points;
 }
Exemplo n.º 2
0
 private int? getScore(ScoreRow scoreRow)
 {
     if (game.CurrentPlayer == game.PlayerOne) return scoreRow.ScorePlayerOne;
     return scoreRow.ScorePlayerTwo;
 }