Have the professor or TA check your work here. If you had problems with the midterm on question 2, you will want to submit a discussion of this object and its behavior (watch for this on the course home page), so be sure you understand things before you leave studio.
Add code so that if somebody enters die die die, the shutDown method of the
game object is called.
Complete the code as directed by the comments in the code.
- If you have a DataInputStream object, you can call readUTF() on that object to read a Java String.
- Look at how the code handles any exceptions. You can always throw an Error if you want the code to stop.
- Be sure you understand just how the try...catch...finally code works, especially if you had trouble on the midterm.
Do not do the work directly! Instead, use addRunnable to queue up the work for the server to perform.
Demo your work (run GameController as a Java application) to the TA or professor and get checked off for the studio sheet.