You will develop your solution from scratch, however you should have at least a Node.java, LinkedListBattle.java, and a Program2Demo.java class (they do not need to be called those specefic names). We wrote quite a bit of code in class that might be helpful for program 2.
You must comment your code. At a minimum, each method should have a brief comment explaining what's going on. Basic getters and setters do not need a comment.
| 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 | 5 |
| Your program correctly simulates one round. j and k are generated, and correctly select two challengers from the circular linked list | 20 |
| Winner is determined correctly and 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 |
| Your program has an adequate amount of comments | 5 |