import java.util.*; // this is the initial fight game to use your Fighter class. Once completed you can work on // enhancements of both this class and the Fighter class public class FightGame { public static void main(String[] args) { Random g=new Random(); // add a Scanner later Fighter f1=new Fighter("You", 10, 2, 50, 8, 1, 0, g); Fighter f2=new Fighter("Me", 13, 4, 30, 4, 1, 50, g); while(f1.isAlive()&&f2.isAlive()) { f1.attacks(f2); if(f2.isAlive()) f2.attacks(f1); // with a Scanner, you can pause between each turn } if(f1.isAlive()) System.out.println(f1 + " wins the fight"); else System.out.println("I'm sorry, you are dead, " + f2 + " killed you!"); } }