Record Class TurnContext
java.lang.Object
java.lang.Record
com.fortemate.dicechess.runtime.TurnContext
- Record Components:
gameId- the game's id, suitable for strategy-owned per-game stateseat- the bot's seat, exactlyWhiteorBlackversion- the authoritative game-state version carried by the deliverydfen- the position plus the rolled dice for the side to moveclock- the game clock, ornullfor an untimed gamelegalMoves- every complete legal turn, each as its sequence of UCI micro-moves. An empty list means the server is auto-passing, so no bot action is required;nullmeans the moves are unknown because the inline tree was absent/capped and no fallback result was availablemayOfferDraw- whether the platform currently permits this side to offer a draw; absent, null, or malformed wire values fail closed tofalse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclock()Returns the value of theclockrecord component.dfen()Returns the value of thedfenrecord component.final booleanIndicates whether some other object is "equal to" this one.gameId()Returns the value of thegameIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelegalMovesrecord component.booleanReturns the value of themayOfferDrawrecord component.seat()Returns the value of theseatrecord component.final StringtoString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
TurnContext
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
gameId
-
seat
-
version
-
dfen
-
clock
-
legalMoves
Returns the value of thelegalMovesrecord component.- Returns:
- the value of the
legalMovesrecord component
-
mayOfferDraw
public boolean mayOfferDraw()Returns the value of themayOfferDrawrecord component.- Returns:
- the value of the
mayOfferDrawrecord component
-