|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjchrest.lib.ChessDomain
public class ChessDomain
The ChessDomain is used for chess modelling.
| Constructor Summary | |
|---|---|
ChessDomain()
|
|
| Method Summary | |
|---|---|
static Scene |
constructBoard(java.lang.String definition)
Construct a chess board given a string definition. |
static ListPattern |
getSalientPieces(ListPattern pattern,
java.lang.Boolean isExperienced)
Retrieve the salient pieces from the given pattern. |
static boolean |
isBigPiece(ItemSquarePattern ios)
A 'big piece' is anything other than a pawn. |
static boolean |
isOffensivePiece(ItemSquarePattern ios)
An 'offensive piece' is a piece on the other player's side. |
ListPattern |
normalise(ListPattern pattern)
Sort given list pattern into a canonical order of chess pieces, as defined in deGroot and Gobet (1996). |
java.util.List<Square> |
proposeMovementFixations(Scene board,
Square square)
Calculate a list of possible destination squares for a piece in a scene. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChessDomain()
| Method Detail |
|---|
public ListPattern normalise(ListPattern pattern)
normalise in interface DomainSpecificspublic static Scene constructBoard(java.lang.String definition)
public static boolean isBigPiece(ItemSquarePattern ios)
public static boolean isOffensivePiece(ItemSquarePattern ios)
public static ListPattern getSalientPieces(ListPattern pattern,
java.lang.Boolean isExperienced)
public java.util.List<Square> proposeMovementFixations(Scene board,
Square square)
proposeMovementFixations in interface DomainSpecifics
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||