java edit
public class TestPlayer {
/**
* @param args
*/
public static void main(String[] args) {
Player player = new Player();
// It will test that the playerís health does not go above 100
player.eat();
// the player cannot attack when they are too weak
System.out.println();
player.attack();
System.out.println();
player.attack();
System.out.println();
player.attack();
System.out.println();
player.attack();
}
}