referee
Class Driver

java.lang.Object
  extended by referee.Driver

public class Driver
extends java.lang.Object

Title: Driver

Description: Runs the checkers game. Each opponent provides an RMI interface that allows this driver to request moves from it. The opponents must be named "first" and "second" and defined in the "referee" package. rmiregistry should be running in the directory containing the referee directory.

Copyright: Matt Evett (c) 2004

Company: Dept. Computer Science, Eastern Michigan University

Version:
1.0
Author:
Matthew Evett

Constructor Summary
Driver()
           
 
Method Summary
static void main(java.lang.String[] args)
          USAGE: There are up to two optional command-line parameters.
static java.lang.String moveToString(int[] nextMove)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Driver

public Driver()
Method Detail

main

public static void main(java.lang.String[] args)
USAGE: There are up to two optional command-line parameters. If any are provided, the first should be an integer equal to the number of moves per game. (The default is 100.) If there is a second argument of any type, then the Driver will not charge a player with a loss upon receiving a faulty move. Instead, the Driver will merely query the player for a different move. A player providing 10 faulty moves will receive a loss.

Parameters:
args - String[]

moveToString

public static java.lang.String moveToString(int[] nextMove)
Parameters:
nextMove - Sequence of positions (1-32) on the board
Returns:
The move sequence as a string