You will develop your solution from scratch, however you should have at least a Node.java, LinkedListBattle.java, and a Program2Demo.java class. We wrote quite a bit of code in class that might be helpful for program 2.
Requirement | Points |
---|---|
Your program reads in the list of challengers from an external file (participants.txt) | 10 |
Challengers are loaded in and added into a circular linked list | 20 |
The circular linked list is correctly printed out after each round | 10 |
Your program correctly simulates one round. j and k are generated, and correctly select two challengers from the circular linked list | 20 |
Eliminated challengers are removed from the circular linked list | 20 |
Program continues to run until 1 challenger remains, or if the user wants to exit the program | 10 |
Your output clearly shows which challengers were picked, who won, and who gets eliminated | 10 |