Howdy!
I'm looking for feedback on my simple fighting program. It runs just fine and I don't see any bugs, so I'm looking for feedback on what I could've done to make it less verbose, more readable, and just generally want to hear any advice you guys have to improve.
I have a feeling that there is a much easier way to implement a structure that avoids displaying a negative health value rather than all those if/else statements...
I will post all of the classes in their entirety:
FightTest.java:
Boxer.java:
Ninja.java
Some sample output(with many of the rounds cut out so you guys don't kill me :S):
I'm looking for feedback on my simple fighting program. It runs just fine and I don't see any bugs, so I'm looking for feedback on what I could've done to make it less verbose, more readable, and just generally want to hear any advice you guys have to improve.
I have a feeling that there is a much easier way to implement a structure that avoids displaying a negative health value rather than all those if/else statements...
I will post all of the classes in their entirety:
FightTest.java:
Boxer.java:
Ninja.java
Some sample output(with many of the rounds cut out so you guys don't kill me :S):