Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Iceberg minNeutral(Game game)
- {
- Iceberg destination=null;
- int min = int.MaxValue;
- for (int i = 0; i < game.GetNeutralIcebergs().Length; i++)
- {
- if(game.GetNeutralIcebergs()[i].PenguinAmount<min)
- {
- min = game.GetNeutralIcebergs()[i].PenguinAmount;
- destination = game.GetNeutralIcebergs()[i];
- }
- }
- return destination;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement