Esempio n. 1
0
 public void ExecuteStrategies()
 {
     foreach (var player in players)
     {
         AddResourcesToPlayer(player);
         HexCell[] playerCells = FindPlayerCells(player);
         if (playerCells.Length > 0)
         {
             try
             {
                 TransferResources(player.Strategy(playerCells));
             } catch
             {
                 scoreboard.ChangeBugs(player, 1);
             }
         }
     }
     grid.DrawUpdatedCells();
     TransferScoreBoardResources();
 }