If you're not failing every now and again, it's a sign you're not doing anything very innovative.

-- W. Allen

TCP/IP Tic Tac Toe

This here is an interesting little program. It was originaly assigned to be a simple client/server project but I went a bit overboard. The server supports unlimited simultanious games, and negotiates each game seperatly. The clients are designed to interact with a server anywhere in the world. Although this program seems trivial, it is an exelent example of TCP/IP communication via Java. The program also demonstrates the usage of threads and a simple way to implement an extensible client/server protocal.

See the tutorials Writing a simple networked program in Java and Using threads in Java for more information on the topics covered in this program.