@@ -0,0 +1,1660 @@
+/* Author: Luigi Vincent%0A%0A*/%0A%0A%0A%0Apublic class Character %7B%0A%09protected String name;%0A%09protected int strength = 10;%0A%09protected int health = 50;%0A%09protected int defense = 5;%0A%0A%09public Character(String name) %7B%0A%09%09this.name = name;%0A%09%7D%0A%0A%09public int attack(Character target) %7B%0A%09%09System.out.println(name + %22 attacks!%22);%0A%09%09return target.takeDamage(strength);%0A%09%7D%0A%0A%09public int takeDamage(int damage) %7B%0A%09%09int damageTaken = Math.max(0, damage - defense);%0A%09%09health = Math.max(0, health - damageTaken);%0A%09%09System.out.println(name + %22 took %22 + damageTaken + %22 damage%22);%0A%09%09return damageTaken;%0A%09%7D%0A%0A%09public static void battle(Character player, Character target) %7B%0A%09%09int turn = 0;%0A%0A%09%09System.out.println(player.name() + %22 VS. %22 + target.name() +%0A%09%09%09%22%5Cn===============%22);%0A%0A%09%09while (player.health() %3E 0 && target.health() %3E 0) %7B%0A%09%09%09System.out.println(%22%5CnTurn: %22 + turn++);%0A%09%09%09player.attack(target);%0A%09%09%09target.attack(player);%0A%09%09%7D%0A%0A%09%09if (player.health() == target.health()) %7B%0A%09%09%09System.out.println(%22It's a draw!%22);%0A%09%09%7D else %7B%0A%09%09%09System.out.println(player.health() %3E 0 ?%0A%09%09%09%09player.name() + %22 wins!%22 : target.name() + %22 wins!%22);%0A%09%09%7D%0A%09%7D%0A%0A%09public Character str(int strength) %7B%0A%09%09this.strength = strength;%0A%09%09return this;%0A%09%7D%0A%09public Character def(int defense) %7B%0A%09%09this.defense = defense;%0A%09%09return this;%0A%09%7D%0A%09public Character hp(int health) %7B%0A%09%09this.health = health;%0A%09%09return this;%0A%09%7D%0A%0A%09public int strength() %7B%0A%09%09return strength;%0A%09%7D%0A%0A%09public int health() %7B%0A%09%09return health;%0A%09%7D%0A%0A%09public int defense() %7B%0A%09%09return defense;%0A%09%7D%0A%0A%09public String name() %7B%0A%09%09return name;%0A%09%7D%0A%0A%09public void status() %7B%0A%09%09System.out.println(name + %22 current HP: %22 + health%0A%09%09%09+ %22, STR: %22 + strength + %22, DEF: %22 + defense);%0A%09%7D%0A%7D%0A

Create Character.java