Random Player

We provide a random player written in java.  This program includes several classes for representing the checkerboard,  generating all moves and jumps, and some helper methods for communicating with the  server.  

The classes can be downloaded here  RandomPlayer.tar.gz .  
This file should contain the following:
Position.java
Position.class
CheckerBoard.java
CheckerBoard.class
aMove.java -- new version
aMove.class -- new veresion
Jump.java -- new version
Jump.class -- new version
Mover.java -- new version
Mover.class -- new version
Helper.java
Helper.class
RandomMove.java
RandomMove.class
and a sample server file.

To use this code independently from the server, unzip and untar the file, then run

java RandomMove <name of file with game information in it>



Except for RandomMove, the classes should be used "as is".  Modifying them will likely result in a program that will not communicate with the server, or which will generate invalid moves.
If you find something that you think is a bug, please email me  (klarson@cs.cmu.edu) a description of the problem and the file that caused it.
Your code should be added to the loop in RandomMove.java.

A note about RandomMove: in the loop of method go, you will see  the line
Thread.sleep(1000);
This is needed because the server does not reply instantaneously.
You can adjust the parameter, but it is at your own risk!

Documentation

Documentation is provided for the classes
aMove
CheckerBoard
Helper
Jump
Mover
Position
RandomMove