CPE 103 Lab
Hot Potato

Complete the handout provided by the instructor. 
Compare your answers against the instructor's solution and correct any mistakes.

The instructor has designed a simulation of Hot Potato and provides the class skeletons and partial implementation.

HotPotato.java contains the main method and the simulation logic.  You must implement the playGame() method.  Do not change any other part of the code.  playGame() makes use of the RoundTable class to simulate a round of play.  It saves the winner and losers in the instance fields, which can then be subsequently obtained via accessor methods.

RoundTable.java is an ADT representing the table at which the game is played. You must implement the create() method.  Do not change any other part of the code.   You must use a circular linked list to represent the seats at the round table. 

Do not use java.util.LinkedList. Do not add any code to the Seat class.

Write JUnit tests to exercise the methods you wrote and verify correctness of your solution.

Run the HotPotato application using the following system test data values:
 
Case #
N
M
1
9
5
2
7
3
3
5
7
4
9
9
5
1
3

Submit your work as described in the syllabus.