posted by Robert on .
Create a class that holds robot warriors. Each has a string for their
name, a number of hit points (an float), armor (a defensive modifier(an int)), and weaponry (an offensive
multiplier(another int)). You will create 5 robots with a random number in each category (500 – 100 hit
points, 1 – 5 armor, 4 – 8 weaponry) and give them each a name. You will then have the five face off in
a little robo-warfare. For now, this just means that you will “sort” the list of objects by the highest hit
points, then by armor, then by weapons if needed. We will develop this further later on. Print out the
list as the output.