Closed GoogleCodeExporter closed 8 years ago
I saw this fact ...
And I've modified the code to reduce cargos size while calculating capacity
needed.
(Just multiplying by 0.83 whats mean cargos with capacity of 20.75 and send more
cargos than needed)
in OGBot.py ...
def attackPlanet(self, sourcePlanet, targetPlanet, attackingShip, abortIfNoShips
= True):
...
ships = math.ceil((resourcesToSteal + producedMeanwhile).total() /
(attackingShip.capacity*0.83))
I know that this solution is not a good thing beacause most of the times, the
bot
send to much cargos but I don't develop in python and I don't know how to
translate
my capacity calculator ( written in visual basic 6 ).
I Did one that works on excel, it acquire the spy reports and compute the
capacity
needed ( an then the fleet to send ) to get 50% of the ressources.
There is no way to compute this simply and my model is quite complex ( almost as
complex a speedsim's ).
If someone is interested, I could help ...
It took me 1 mounth to write a working calcultation algorythme :D
Original comment by HenryZ...@gmail.com
on 8 Jun 2007 at 10:13
Original comment by jsceballos
on 9 Jun 2007 at 10:05
Original issue reported on code.google.com by
vietna...@gmail.com
on 7 Jun 2007 at 7:16