CPE 103 Lab
Hot Potato

Warmup.
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.
Complete the implementation of playGame() and create() methods.
Write JUnit tests to exercise your methods and verify correctness of your solution.

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. 


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

Be sure each student name is included in a separate @author tag in the source files.
Create a zip file of your source files and unit tests and submit it to Web-CAT for automated grading.
You are finished when all your tests pass and your "estimate of problem coverage" is 100%. "Code coverage from your tests" is not counted on this lab.

You may retain the handout for your own study. There is nothing else to submit for this lab.