Package featurecat.lizzie.rules
Class SGFParser
java.lang.Object
featurecat.lizzie.rules.SGFParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addProperties
(Map<String, String> props, String propsStr) Add the properties from stringstatic void
Add the properties by mutating the propsstatic void
Add a key and value to the propsstatic int[]
static String
static String
Get a value with key, or the default if there is no such keystatic boolean
isListProperty
(String key) static boolean
isMarkupProperty
(String key) static boolean
static boolean
static boolean
loadFromString
(String sgfString) static String
nodeString
(String key, String value) Get node string by the key and valuestatic int
parseBranch
(BoardHistoryList history, String value) static BoardHistoryList
static String
passPos()
static String
propertiesString
(Map<String, String> props) Get properties string by the propsstatic void
static String
-
Constructor Details
-
SGFParser
public SGFParser()
-
-
Method Details
-
load
- Throws:
IOException
-
loadFromString
-
passPos
-
isPassPos
-
convertSgfPosToCoord
-
saveToString
- Throws:
IOException
-
save
- Throws:
IOException
-
isListProperty
-
isMarkupProperty
-
getOrDefault
Get a value with key, or the default if there is no such key- Parameters:
key
-defaultValue
-- Returns:
-
addProperty
Add a key and value to the props- Parameters:
key
-value
-
-
addProperties
Add the properties by mutating the props -
addProperties
Add the properties from string -
propertiesString
Get properties string by the props- Returns:
-
nodeString
Get node string by the key and value- Parameters:
key
-value
-- Returns:
-
Escaping
-
parseSgf
-
parseBranch
-