Package net.royalur.lut
Class FinkelGameStateEncoding
java.lang.Object
net.royalur.lut.SimpleGameStateEncoding
net.royalur.lut.FinkelGameStateEncoding
- All Implemented Interfaces:
GameStateEncoding
-
Field Summary
Fields inherited from class net.royalur.lut.SimpleGameStateEncoding
boardBits, darkSafeBoardIndices, flags, lightSafeBoardIndices, safeTileBitsPerPlayer, settings, warBoardIndices, warTileCompression, warTileCompressionTileCount, warTileSegmentBits, warTileSegmentCount
-
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
-
Constructor Details
-
FinkelGameStateEncoding
public FinkelGameStateEncoding()
-
-
Method Details
-
encodeGameState
Description copied from interface:GameStateEncoding
Encode the given game state to a binary key.- Specified by:
encodeGameState
in interfaceGameStateEncoding
- Overrides:
encodeGameState
in classSimpleGameStateEncoding
- Parameters:
game
- The game to encode.- Returns:
- The game state encoded as a binary key.
-