Exemple #1
0
 private static void AddWinLeft(Team left, Team right)
 {
     left.AddWin();
     right.AddLooses();
     foreach (Gamer gamer in left.Gamers)
     {
         foreach (Gamer gamerTwo in left.Gamers)
         {
             if (gamerTwo == gamer)
             {
                 continue;
             }
             gamer.Addbody(gamerTwo, 1, 0);
         }
         foreach (Gamer gamerTwo in right.Gamers)
         {
             gamer.AddEnemy(gamerTwo, 1, 0);
         }
     }
     foreach (Gamer gamer in right.Gamers)
     {
         foreach (Gamer gamerTwo in right.Gamers)
         {
             if (gamerTwo == gamer)
             {
                 continue;
             }
             gamer.Addbody(gamerTwo, 0, 1);
         }
         foreach (Gamer gamerTwo in left.Gamers)
         {
             gamer.AddEnemy(gamerTwo, 0, 1);
         }
     }
 }