Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # offense code
- my_fleets = pw.MyFleets()
- for fleets in my_fleets:
- atk = f.NumShips()
- desti = f.DestinationPlanet()
- timeleft = f.TurnsRemaining()
- defense = p.NumShips(desti)
- growth = p. GrowthRate(desti)
- time = timeleft
- for turns in timeleft:
- defense = defense + growth
- time = time - 1
- if time <= 0:
- defense = defense - atk
- if time <= 0 and defense >= 0:
- pw.issueorder(desti, source, num_ships)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement