/** *A stub class for Player * * @author Matthew Charnetski * @author Anne Feltovich * @author Elizabeth Ottesen * @author Austin Wells * @version 1.0 of March 2000 */ public class StubPlayer implements Player { /** *This method takes the first legal move and makes it. *It requires that Rules contains a method allMoves, which returns an *integer array of moves, that Piece has a piece constructor as described *in their Phase 2, and Board has the putPiece class, as described in their *Project Phase 2 information. *It makes the first legal move on the list. */ public void makeMove(Board board, Rules rules, String color) { int[] legalMoves = new int[]; legalMoves = rules.allMoves(board, color); Piece piece = new Piece(LegalMoves[1], color, board); Board.putPiece(piece); }//getMove }//class StubPlayer