Needed Amount To Kill

Jump to navigation Jump to search
Revision as of 27 August 2017 at 19:32.
This is the thread's initial revision.

Needed Amount To Kill

As I see from your version history you don't calculate needed amount to kill the robot precisely. I use this code:

            double robotEnergy = a.getEnergy();
            double neededAmountToKill;
            if (battleInfo.energy <= 4) {
                neededAmountToKill = battleInfo.energy / 4;
            } else {
                neededAmountToKill = (battleInfo.energy + 2) / 6;
            }

This may help you to improve SimpleBot.

    Dsekercioglu (talk)21:32, 27 August 2017