Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. # offense code
  2. my_fleets = pw.MyFleets()
  3. for fleets in my_fleets:
  4.   atk = f.NumShips()
  5.   desti = f.DestinationPlanet()
  6.   timeleft = f.TurnsRemaining()
  7.   defense = p.NumShips(desti)
  8.   growth = p. GrowthRate(desti)
  9.   time = timeleft
  10.   for turns in timeleft:
  11.     defense = defense + growth
  12.     time = time - 1
  13.     if time <= 0:
  14.       defense = defense - atk
  15.     if time <= 0 and defense >= 0:
  16.       pw.issueorder(desti, source, num_ships)
  17.       
  18.     
  19.     
  20.  
  21.   
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement