This code sets up a battle.cpp program that will interact with the Grog class (Grog.h and Grog.cpp). This class is currently functioning, as is the driver file (battle.cpp), so you should be able to run this once you download it and see the output from two Grogs that are created and a test of some of the functionality.
You will take the battle.cpp file and follow the commented instructions to do the following: create a vector of 10 PRG Grogs, have them battle in a single-elimination round, and save the five winners. These five will fight in a round robin match where each Grog fights each other Grog at least twice, recording wins and losses. This will leave you with 5 ranked Grogs, and you will select the top 2 to battle for the ultimate champion. YOU WILL likely have to figure out a method to break ties - largest margin of victory, best HP remaining in a battle, etc., you pick what makes sense to you.
There are several elements that you will want to create, and some of these involve making changes to the Grog class files, so think them through before you start coding.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here