@@ -0,0 +1,1313 @@
+%0Apublic class FighterUtils %7B%0A%0A    public static Double calculateHealthBasedOnAttack(Double attack)%7B%0A        Double calculatedHealth = (Math.pow(100 - attack, 2)%0A                / (30 + attack)) * 10;%0A        return calculatedHealth;%0A    %7D%0A%0A    public static void generateRandomAttack(Fighter fighter)%7B%0A        Double randomAttack = Math.random() * 100;%0A        fighter.setAttack(randomAttack);%0A    %7D%0A    public static void generateRandomType(Fighter fighter)%7B%0A        fighter.setGeneType(GeneType.getRandom());%0A    %7D%0A%0A    public static GeneType determineType(String geneTypeString)%7B%0A        GeneType geneType = GeneType.FIRE;%0A        if(geneTypeString.equalsIgnoreCase(%22FIRE%22))%7B%0A            geneType = GeneType.FIRE;%0A        %7D%0A        if(geneTypeString.equalsIgnoreCase(%22WATER%22))%7B%0A            geneType = GeneType.WATER;%0A        %7D%0A        if(geneTypeString.equalsIgnoreCase(%22GRASS%22))%7B%0A            geneType = GeneType.GRASS;%0A        %7D%0A        return geneType;%0A    %7D%0A%0A    public static Fighter createNewEnemyFighter() %7B%0A        Fighter enemyFighter = new Fighter();%0A        FighterUtils.generateRandomType(enemyFighter);%0A        FighterUtils.generateRandomAttack(enemyFighter);%0A        enemyFighter.setHealth(FighterUtils.calculateHealthBasedOnAttack(enemyFighter.getAttack()));%0A        return enemyFighter;%0A    %7D%0A%7D%0A

Create FighterUtils.java