API Details

Both the server application and the client APIs have been developed in Java. The server application listens on port 7007 for clients. It pairs up every couple of clients as and when they arrive and spawn a thread for each pair to play the game. It also takes care of the GUI for display.

The client API consists of three functions to interact with the server

  1. Start(String name): It returns information like grid size and starting player info
  2. MakeMove(move): It returns your move to the server
  3. GetMove(): It returns the opponent's move

Detailed documentation can be viewed in this javadoc [download]. But the basic idea is to call the functions in the logical order. If not, the player who made the invalid move is disqualified by the server application instantaneously.

NOTE:
Move Time Constraint is 1 minute.

Download:

Quick Start Guide
SquaresClientAPI.jar
SquaresGameSampleClient.jar
SquaresGameServerLinux.jar
SquaresGameServerWindows.jar