You will have to download the game which is a jar file here.
It contains a file PlayerInfo.txt which you must modify to use the ports of your players.
Now each player should be having an assigned port, so that when you select the player, the game tries to connect to him or her.
ReMake the jar file by "jar cvfm notippingapp.jar manifest.txt *.class *.java PlayerInfo.txt".
When running the program, specify hostname=localhost to connect to the ports on your local machine. This is useful for testing. specify any other hostname to connect to machines on which the competition is being held.
Another argument is nodelay=true, this speeds up the game by avoiding the smooth movements of weights and just drops them in place.
So, to run the application, something like "java -jar notippingapp.jar hostname=localhost" should be enough.
First select the second player, then the first player and then click on Connect. Red always goes first, so select the blue player first.
You will have to download the framework for your player here.
It contains a file NoTippingPlayer.java which you must extend. A sample Contestant.java file is provided which allows you to play by command line instruction is provided.
To run the player, run it on the machine to which the application run by the architect will connect.
Something like "java Contestant 8080" would run your program on port 8080.
If the application (client) disconnects the connection to your player (server), the application exits.
The application sends the state as a set of lines in the following form :-
The phase which is either "ADDING" or "REMOVING",
followed by lines containing "place position color weight".
Place is 0 for the sky, 1 for the board and 2 for the grass.
Position is meaningful for weights on board, otherwise ignore it.
The player sends a move in the following form :-
A line containing "position weight".
In the adding phase, it indicates which weight you want to move where.
In the removing phase, it indicates which weight is removed from where.