コード例 #1
0
 private SuggestedMatch(Player p1, Player p2, Player p3, Player p4)
 {
     Team1 = new Team(p1, p2);
     Team2 = new Team(p3, p4);
     Team1.AddOpponents(Team2);
     HandicapDifference = Math.Abs(Team1.CompareHandicapWith(Team2));
 }
コード例 #2
0
 public void AddOpponents(Team opposingTeam)
 {
     this.AddOpponent(opposingTeam.Player1);
     this.AddOpponent(opposingTeam.Player2);
 }