Package featurecat.lizzie.rules
Class BoardData
java.lang.Object
featurecat.lizzie.rules.BoardData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperties
(String propsStr) Add the properties from stringvoid
addProperties
(Map<String, String> addProps) Add the propertiesvoid
addProperty
(String key, String value) Add a key and valueclone()
static BoardData
empty
(int width, int height) getOrDefault
(String key, String defaultValue) Get a value with key, or the default if there is no such keyint
Get the propertiesgetProperty
(String key) Get a value with keydouble
static double
getScoreMeanFromBestMoves
(List<MoveData> bestMoves) double
static double
getWinrateFromBestMoves
(List<MoveData> bestMoves) boolean
isSameCoord
(int[] coord) Get properties stringvoid
setPlayouts
(int playouts) void
void
void
tryToSetBestMoves
(List<MoveData> moves)
-
Field Details
-
moveNumber
public int moveNumber -
moveMNNumber
public int moveMNNumber -
lastMove
-
moveNumberList
public int[] moveNumberList -
blackToPlay
public boolean blackToPlay -
dummy
public boolean dummy -
lastMoveColor
-
stones
-
zobrist
-
verify
public boolean verify -
winrate
public double winrate -
engineIndex
public int engineIndex -
komi
public double komi -
scoreMean
public double scoreMean -
bestMoves
-
blackCaptures
public int blackCaptures -
whiteCaptures
public int whiteCaptures -
comment
-
-
Constructor Details
-
BoardData
-
-
Method Details
-
empty
-
addProperty
Add a key and value- Parameters:
key
-value
-
-
getProperty
Get a value with key- Parameters:
key
-- Returns:
-
getOrDefault
Get a value with key, or the default if there is no such key- Parameters:
key
-defaultValue
-- Returns:
-
getProperties
Get the properties- Returns:
-
addProperties
Add the properties -
addProperties
Add the properties from string -
propertiesString
Get properties string- Returns:
-
getWinrate
public double getWinrate() -
tryToClearBestMoves
public void tryToClearBestMoves() -
tryToSetBestMoves
-
getWinrateFromBestMoves
-
getScoreMean
public double getScoreMean() -
getScoreMeanFromBestMoves
-
bestMovesToString
-
setPlayouts
public void setPlayouts(int playouts) -
getPlayouts
public int getPlayouts() -
sync
-
clone
-
isSameCoord
public boolean isSameCoord(int[] coord)
-