Programming Assignment 2
SE 510 Principles and Applications of Software Design
Fall 2009

Tic-Tac-Toe

Our next team assignment is to change our current stand-alone game to an online game. The system now consists of two deployable components, one is the gaem server running on our dept server1.cs.scranton.edu, and the other is the client program which may be executed on any machine on the Internet and can connect the server using sockets.

For this assignment, the server hosts only one game at a time, i.e., only two players are allowed to connect to the server and play the game at a time. When the is completed, the server waits for two new connections to play another game. 

To submit your assignment, email the instructor (biy1@scranton.edu) and ATTACH your source files to the email. The subject of your email should appear like “SE 510 Assignment 2 – Team #: members' lastnames”. Correctly naming your file and following submission procedure is considered part of the assignment requirements.

The system consists of a server program and a client program. The server will be hosted on either department server1 or server2, and  players can use the client to remotely connect to the server to play the game with each other.  For this assignment, only one game is hosted at a time, i.e., only two players are allowed to connect to the server at a time. In a follow-up assignment we will remove this limit to allow "any" number of games to be played at the same time.

Team Members and Socket Port Assignment

Team # Members  Port #
1 Dasari, Hepsiba V. 200911
Shamim, Shahana
Paulowskey, Joseph J.
2 Behr, Kevin M. 200921
Peddachappali, Sai K.
Sudhakara, Suhasini
3 Paulukonis, Michael J. 200931
Pedley, Michael J.
Washo, Jason C.
4 Easton, William R. 200941
Redding, David P.

Helpful links:

Passing Objects through Sockets: Client, Server, Person, ACK
Java ServerSocket API
Java Socket API
Java Socket Tutorial by Sun
Java Socket Tutorial by JavaWorld
Java Thread Tutorial by Sun
Java Threads Tutorial by JavaWorld