Package net.royalur.lut
Class SimpleGameStateEncoding
java.lang.Object
net.royalur.lut.SimpleGameStateEncoding
- All Implemented Interfaces:
GameStateEncoding
- Direct Known Subclasses:
FinkelGameStateEncoding
Encoding for simple rule-sets.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final int[]
protected final FastSimpleFlags
protected final int[]
protected final int
protected final GameSettings
protected final int[]
protected final int[]
protected final int
protected final int
protected final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Encode the given game state to a binary key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.royalur.lut.GameStateEncoding
encodeSymmetricalGameState
-
Field Details
-
settings
-
flags
-
warTileCompressionTileCount
protected final int warTileCompressionTileCount -
warTileSegmentCount
protected final int warTileSegmentCount -
warTileCompression
protected final int[] warTileCompression -
warTileSegmentBits
protected final int warTileSegmentBits -
safeTileBitsPerPlayer
protected final int safeTileBitsPerPlayer -
boardBits
protected final int boardBits -
warBoardIndices
protected final int[] warBoardIndices -
lightSafeBoardIndices
protected final int[] lightSafeBoardIndices -
darkSafeBoardIndices
protected final int[] darkSafeBoardIndices
-
-
Constructor Details
-
SimpleGameStateEncoding
-
-
Method Details
-
encodeGameState
Description copied from interface:GameStateEncoding
Encode the given game state to a binary key.- Specified by:
encodeGameState
in interfaceGameStateEncoding
- Parameters:
game
- The game to encode.- Returns:
- The game state encoded as a binary key.
-