|
Internet Chess ToolKit v0.2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectictk.boardgame.chess.io.ChessMoveNotation
ictk.boardgame.chess.io.SAN
SAN - Standard Algebraic Notation Moves are represented as: Nb7++, gxh8=Q, O-O-O, e4, Rad1#
Field Summary | |
static long |
DEBUG
|
Fields inherited from class ictk.boardgame.chess.io.ChessMoveNotation |
FILE_SETS, PIECE_SETS, RANK_SETS |
Constructor Summary | |
SAN()
|
|
SAN(boolean pawnSpace)
|
|
SAN(java.util.Locale loc)
note: different Locales other than the default (English) should only be used for local presentation. |
|
SAN(java.util.Locale loc,
boolean pawnSpace)
|
Method Summary | |
boolean |
isPawnAsSpace()
|
java.lang.String |
moveToString(ChessMove m)
|
java.lang.String |
moveToString(Move move)
calls moveToString(false) and thus only returns the move. |
java.lang.String |
moveToString(Move move,
boolean showSuffix)
read the string an convert it into an unverified move |
java.lang.String |
resultToString(Result result)
converts a result number into a string. |
boolean |
setLocale(java.util.Locale loc)
sets the Locale for the ChessMoveNotation to use localised piece representations. |
void |
setPawnAsSpace(boolean t)
|
Move |
stringToMove(Board b,
java.lang.String s)
converts a string into a ChessMove object. |
Result |
stringToResult(java.lang.String s)
converts a string into a result number the default return value if the string cannot be read is null |
Methods inherited from class ictk.boardgame.chess.io.ChessMoveNotation |
fileToChar, fileToNum, fileToNum, getLocale, getPieceSet, pieceToChar, pieceToChar, pieceToNum, pieceToNum, rankToChar, rankToNum, setPieceSet |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long DEBUG
Constructor Detail |
public SAN()
public SAN(boolean pawnSpace)
public SAN(java.util.Locale loc)
public SAN(java.util.Locale loc, boolean pawnSpace)
Method Detail |
public void setPawnAsSpace(boolean t)
public boolean isPawnAsSpace()
public boolean setLocale(java.util.Locale loc)
ChessMoveNotation
setLocale
in class ChessMoveNotation
public Move stringToMove(Board b, java.lang.String s) throws AmbiguousChessMoveException, IllegalMoveException
AmbiguousChessMoveException
- if the move is not unique
IllegalMoveException
- if the move is not legal on the board
java.lang.IllegalArgumentException
- if the Board is nullpublic Result stringToResult(java.lang.String s)
public java.lang.String moveToString(Move move)
public java.lang.String moveToString(Move move, boolean showSuffix)
public java.lang.String moveToString(ChessMove m)
public java.lang.String resultToString(Result result)
|
Submit a bug or feature Visit the Website Internet Chess ToolKit is licensed under the GPL v2 . |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |