|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Player
Title: PlayerInterface
Description: Checkers playing agents must implement this interface.
Copyright: Matt Evett (c) 2004
Company: Eastern Michigan University
Method Summary | |
---|---|
int[] |
getMove(int[] board,
boolean isWhite,
int movesRemaining)
|
java.lang.String |
getName()
|
Method Detail |
---|
int[] getMove(int[] board, boolean isWhite, int movesRemaining) throws java.rmi.RemoteException
board
- --- The board is encoded as a 33 integer array.
board[0] is unused. For i from 1 to 32, board[i] indicates what piece, if any
is position i on the board, using the official checkers numbering
scheme. board[i] = -2 for a black king, -1 for a black pawn, 1 for a white pawn,
2 for a white king, and is 0 if the position is unoccupiedisWhite
- is true if the player should make a move for White.movesRemaining
- is the number of moves remaining before a draw is called
java.rmi.RemoteException
java.lang.String getName() throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |