/** * RulesImp class * * This is a stub class to test and implement the Rules interface. * * @author Alex Ford, Johnathan Emmons, Rob Park, Arrel Gray * @version 1.0 of March 2000 * */ public class OthelloRules { public OthelloRules(int num) { this.numPlayers = num; this.player = 1; } //OthelloRules // +--------+--------------------------------------------------- // | Fields | // +--------+ /** The number of players */ int numPlayers; /** The current player */ int player; // +---------+-------------------------------------------------- // | Methods | // +---------+ // +------------+------------------------------------------------ // | Extractors | // +------------+ /** extract the currnet player */ public int getPlayer() { return this.player; }//getPlayer /** determines whether the attempted move is legal */ public boolean legalMove(int player, int row, int column) { return false; }//legalMove }//class RulesStub