public class MoveStringUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Move |
parsePACN(Position pos,
String pacn)
Parses a move string in PACN format.
|
static Move |
parseSAN(Position pos,
String san)
Parses a move string in SAN format.
|
static String |
toSAN(Position pos,
Move move)
It creates a move string in SAN format.
|
public static Move parsePACN(Position pos, String pacn) throws ChessParseException
pos
- A position in which the move defined by the move string is legal.pacn
- The move string to parse.ChessParseException
- If the move string is in an illegal format.public static Move parseSAN(Position pos, String san) throws ChessParseException, NullPointerException
pos
- A position in which the move defined by the move string is legal.san
- The move string to parse.ChessParseException
- If the move string is in an illegal format.NullPointerException
Copyright © 2020. All rights reserved.