Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //if it's the first turn
- if (pw.MyPlanets().Count == 1 && pw.EnemyPlanets().Count == 1
- && pw.MyFleets().Count < 3)
- {
- //get start planet and find near neutrals to takeover
- Planet start = pw.LocateMyStart();
- int startShips = start.NumShips();
- List<Planet> planets = pw.FindNearNeutralPlanets(start, 5);
- List<Planet> takeover = pw.BestPayoff3(planets, start);
- foreach (Planet p in takeover)
- {
- if (startShips > p.NumShips() + 1 && start != null)
- {
- pw.IssueOrder(start, p, p.NumShips() +1);
- startShips -= p.NumShips() + 1;
- }
- }
- }
Add Comment
Please, Sign In to add comment