|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRules
public class Rules
This class is used to check the validity of the moves made by the players. It also checks to see if the conditions for the end of the game have been met.
Constructor Summary | |
---|---|
Rules(Board board,
Driver driver)
The constructor for the Rules class. |
Method Summary | |
---|---|
boolean |
validateMove(Move move)
This method checks to see if the move that was just made was valid and returns a boolean indicating that. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rules(Board board, Driver driver)
board
- - the checker board.driver
- - the main driver of the program.Method Detail |
---|
public boolean validateMove(Move move)
move
- The move that is to be validated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |