code optimize ?
After several stategic combats i realized that the program only check if all enemy units are destroyed at the end of the turn.
If the winning fleet have several carriers / fighters, that waste lots of time.
Is better to check after each enemy is destroyed if is the Last and if yes, exit the cycle.
My 2 cents
|