/// <summary> /// For each pair of players, record that they played together /// </summary> public void AddToPairingsCount(PlayerPairings pairings) { foreach (var playerPairing in PlayerPairings()) { pairings.PlayedTogether(playerPairing); } }
/// <summary> /// Add a player to the team after pairings have already been generated /// </summary> public void AddPlayerLate(Player player, PlayerPairings pairings) { AddPlayer(player); foreach (var pairing in PlayerPairings(player)) { pairings.PlayedTogether(pairing); } player.GameDone(GameResult, Model.GameResult.NoneYet); }