|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Runner
Helper class to find winning scores for BoardGame.
Constructor Summary | |
Runner(BoardGame game,
int col,
int row)
This class does not have any interesting contracts. |
Method Summary | |
int |
run(int dcol,
int drow)
A Runner runs in some direction (dcol,drow) as far as it can, as long as the pieces on the Board are the same as the home square. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Runner(BoardGame game, int col, int row)
Method Detail |
public int run(int dcol, int drow) throws AssertionException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |