


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



You can do this assignment in a group of two. In this assignment, you will implement a game server for the connect-five (Gomoku) game. The connect-five game is played on a 19 × 19 board with two types of stones, black and white. Each player takes turn to play (place a stone anywhere in the board that is still available), with the black always making the first move. The game is won by having five consecutive stones horizontally, vertically, or diagonally. The server should support the basic functionality of a typical Internet game server:
More specifically, the following commands should be supported in our Connect-five server:
[...] optional field, <......> required field
who # list all users online stats [name] # display information about [name] match
info
A sample executable is running on aquarius port 8888 (’telnet aquarius 8888’ from departmental ma- chines to use the sample game server). You should try to make your server behave like the sample server (while fixing problems in the sample server).
Misc.
You should start from an echo server to build up the game server. The sample program is a multiplex server (2000+ lines of code).
You should focus on the correct user behavior. You will notice many unspecified features in the project (e.g. a second connection from the same user). Your server needs have a reasonable behavior in all cases. Under no circumstances should the server crash.
All programs will be checked by an automatic software plagiarism detection tool.