Your submission should follow our general guidelines. Please follow object-oriented principles.
R1 | R2 | R3 | R4 | va | vb |
---|---|---|---|---|---|
300 Ω | 800 Ω | 600 Ω | 400 Ω | 12 V | 6 V |
TicTacToeServer
class to test for a win, loss or draw after each move.
Send a message to each client that indicates the result of the game when the game is over.
Modify the TicTacToeClient
class to display a button that when clicked allows the client
to play another game. The button should be enabled only when a game completes.
Both class TicTacToeClient
and class TicTacToeServer
must be modified to reset the board and
all state information. Also, the other TicTacToeClient
should be notified that a new game is
about to begin so that its board and state can be reset.
See Dietel and Dietel, Java, How to Program, 9th Edition
Prentice-Hall, 2012. ISBN 0-13-257556-3
Chapter 27,
Networking
KnockKnockServer
.
Your jokes should come up first.