@@ -0,0 +1,1429 @@
+import java.util.Random;%0A%0A/**%0A * Created by D532387 on 11/19/2016.%0A */%0Apublic class Combat %7B%0A%0A    private Boolean didUserWinCombat;%0A    private Boolean isCombatOngoing;%0A    private Fighter userFighter;%0A    private Fighter enemyFighter;%0A%0A    private Double userRemainingHealth;%0A    private Double enemyRemainingHealth;%0A%0A    Combat(Fighter userFighter, Fighter enemyFighter)%7B%0A        this.userFighter = userFighter;%0A        this.enemyFighter = enemyFighter;%0A    %7D%0A%0A    public Boolean fight()%7B%0A        isCombatOngoing = true;%0A        while(isCombatOngoing)%7B%0A            nextTurn();%0A            checkForCombatEnd();%0A        %7D%0A        return didUserWinCombat;%0A    %7D%0A%0A    private void checkForCombatEnd() %7B%0A        if(enemyFighter.getHealth() %3C= 0)%7B%0A            isCombatOngoing = false;%0A            didUserWinCombat = true;%0A        %7D%0A        if(userFighter.getHealth() %3C= 0)%7B%0A            isCombatOngoing = false;%0A            didUserWinCombat = false;%0A        %7D%0A    %7D%0A%0A    private Double attack(Double attackerAttack, Double DefenderHealth) %7B%0A        return DefenderHealth - (attackerAttack * Math.random());%0A    %7D%0A%0A    private void nextTurn()%7B%0A        enemyRemainingHealth = attack(userFighter.getAttack(),enemyFighter.getHealth());%0A        enemyFighter.setHealth(enemyRemainingHealth);%0A        userRemainingHealth = attack(enemyFighter.getAttack(),userFighter.getHealth());%0A        userFighter.setHealth(userRemainingHealth);%0A    %7D%0A%7D%0A

Create combat.java