Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- accept() - Static method in record class com.fortemate.dicechess.runtime.DoubleResponseAction
-
Returns an action that accepts the pending double offer.
- accept() - Static method in record class com.fortemate.dicechess.runtime.DrawAction
-
Returns an action that accepts the pending draw offer.
- acceptDouble() - Method in record class com.fortemate.dicechess.runtime.DoubleResponseAction
-
Returns the value of the
acceptDoublerecord component. - acceptDraw() - Method in record class com.fortemate.dicechess.runtime.DrawAction
-
Returns the value of the
acceptDrawrecord component. - ACTIVATION_PROOF_PREFIX - Static variable in class com.fortemate.dicechess.runtime.Signatures
-
Domain separation prefix prepended to the raw body when computing a version-2 activation response proof.
- activationProof(String, String) - Static method in class com.fortemate.dicechess.runtime.Signatures
-
Computes the lowercase-hex HMAC-SHA256 response proof for a version-2 verification challenge.
- active() - Method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Returns the value of the
activerecord component. - activeAndPending(String, String) - Static method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Creates a configuration containing both an active and a pending key.
- activeOnly(String) - Static method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Creates a configuration containing only an active key.
- attachShutdownHook(HttpServer, AtomicBoolean, String, String, long) - Static method in class com.fortemate.dicechess.runtime.CustomHandlerServer
-
Attaches a JVM shutdown hook that runs
CustomHandlerServer.executeShutdown(HttpServer, AtomicBoolean, String, String, long)on SIGTERM.
B
- BotStrategy - Interface in com.fortemate.dicechess.runtime
-
Decision-oriented strategy contract for a DiceChess webhook bot.
- Bots with no engine of their own - Section in package com.fortemate.dicechess.runtime
C
- clock() - Method in record class com.fortemate.dicechess.runtime.DoubleDecisionContext
-
Returns the value of the
clockrecord component. - clock() - Method in record class com.fortemate.dicechess.runtime.DoubleOpportunityContext
-
Returns the value of the
clockrecord component. - clock() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the game clock, or
nullfor an untimed game. - clock() - Method in record class com.fortemate.dicechess.runtime.DrawDecisionContext
-
Returns the value of the
clockrecord component. - clock() - Method in record class com.fortemate.dicechess.runtime.TurnContext
-
Returns the value of the
clockrecord component. - com.fortemate.dicechess.runtime - package com.fortemate.dicechess.runtime
-
Transport runtime for DiceChess webhook bots.
- Concurrency - Section in package com.fortemate.dicechess.runtime
- cubeOwner() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the seat owning the cube, or
nullif centered. - cubeOwner() - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Returns the value of the
cubeOwnerrecord component. - cubeValue() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the doubling cube multiplier.
- cubeValue() - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Returns the value of the
cubeValuerecord component. - currency() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the stake currency name.
- currency() - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Returns the value of the
currencyrecord component. - CURRENCY_PLAY_CREDIT - Static variable in record class com.fortemate.dicechess.runtime.DoublingState
-
The required currency name for staked games.
- currentStake() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the current active stake in whole currency units.
- currentStake() - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Returns the value of the
currentStakerecord component. - CustomHandlerServer - Class in com.fortemate.dicechess.runtime
-
A minimal HTTP server for the Azure Functions custom-handler model: one path, one
WebhookHandler, no framework. - CustomHandlerServer.ShutdownOutcome - Enum Class in com.fortemate.dicechess.runtime
D
- decision() - Method in record class com.fortemate.dicechess.runtime.DoubleDecisionContext
- decision() - Method in record class com.fortemate.dicechess.runtime.DoubleOpportunityContext
- decision() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the typed doubling decision.
- decision() - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Returns the value of the
decisionrecord component. - decisionId() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the opaque decision identifier for this doubling episode.
- decline() - Static method in record class com.fortemate.dicechess.runtime.DoubleOfferAction
-
Synonym for
DoubleOfferAction.roll(): declines to offer a double and proceeds to roll. - decline() - Static method in record class com.fortemate.dicechess.runtime.DoubleResponseAction
-
Returns an action that explicitly declines the pending double offer.
- decline() - Static method in record class com.fortemate.dicechess.runtime.DrawAction
-
Returns an action that explicitly declines the pending draw offer.
- dfen() - Method in record class com.fortemate.dicechess.runtime.DoubleDecisionContext
-
Returns the value of the
dfenrecord component. - dfen() - Method in record class com.fortemate.dicechess.runtime.DoubleOpportunityContext
-
Returns the value of the
dfenrecord component. - dfen() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the pre-roll position; no dice are present.
- dfen() - Method in record class com.fortemate.dicechess.runtime.DrawDecisionContext
-
Returns the value of the
dfenrecord component. - dfen() - Method in record class com.fortemate.dicechess.runtime.TurnContext
-
Returns the value of the
dfenrecord component. - DoubleDecisionContext - Record Class in com.fortemate.dicechess.runtime
-
Authenticated pre-roll context for deciding an opponent's pending stake double offer.
- DoubleDecisionContext(String, String, long, String, GameClock, DoublingState) - Constructor for record class com.fortemate.dicechess.runtime.DoubleDecisionContext
-
Creates a validated double-decision context.
- DoubleOfferAction - Record Class in com.fortemate.dicechess.runtime
-
A bot's response to a
doubleOpportunitydelivery. - DoubleOfferAction(boolean) - Constructor for record class com.fortemate.dicechess.runtime.DoubleOfferAction
-
Creates a double offer action.
- DoubleOfferAction(boolean, boolean) - Constructor for record class com.fortemate.dicechess.runtime.DoubleOfferAction
-
Creates an instance of a
DoubleOfferActionrecord class. - DoubleOpportunityContext - Record Class in com.fortemate.dicechess.runtime
-
Authenticated pre-roll context for deciding whether to offer a stake double on this bot's turn.
- DoubleOpportunityContext(String, String, long, String, GameClock, DoublingState) - Constructor for record class com.fortemate.dicechess.runtime.DoubleOpportunityContext
-
Creates a validated double-opportunity context.
- DoubleResponseAction - Record Class in com.fortemate.dicechess.runtime
-
A bot's response to a
doubleDecisiondelivery. - DoubleResponseAction(boolean) - Constructor for record class com.fortemate.dicechess.runtime.DoubleResponseAction
-
Creates a double response action.
- DoubleResponseAction(boolean, boolean) - Constructor for record class com.fortemate.dicechess.runtime.DoubleResponseAction
-
Creates an instance of a
DoubleResponseActionrecord class. - doubling() - Method in record class com.fortemate.dicechess.runtime.DoubleDecisionContext
-
Returns the value of the
doublingrecord component. - doubling() - Method in record class com.fortemate.dicechess.runtime.DoubleOpportunityContext
-
Returns the value of the
doublingrecord component. - doubling() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the complete doubling state.
- DoublingContext - Interface in com.fortemate.dicechess.runtime
-
Common pre-roll context for stake-doubling decisions in a staked game.
- DoublingDecision - Interface in com.fortemate.dicechess.runtime
-
An authoritative stake-doubling decision awaiting bot action.
- DoublingDecision.Offer - Record Class in com.fortemate.dicechess.runtime
-
An offer decision awaiting the turn owner's choice to offer a double or roll.
- DoublingDecision.Response - Record Class in com.fortemate.dicechess.runtime
-
A response decision awaiting the responder's choice to accept or decline an offer.
- DoublingState - Record Class in com.fortemate.dicechess.runtime
-
The doubling state of a staked game.
- DoublingState(String, long, long, int, String, int, boolean, String, DoublingDecision) - Constructor for record class com.fortemate.dicechess.runtime.DoublingState
-
Creates a validated doubling state.
- DRAINED - Enum constant in enum class com.fortemate.dicechess.runtime.CustomHandlerServer.ShutdownOutcome
-
No token, or the call did not succeed: further deliveries were answered with a resignation instead.
- DrawAction - Record Class in com.fortemate.dicechess.runtime
-
A bot's response to a
drawDecisiondelivery. - DrawAction(boolean) - Constructor for record class com.fortemate.dicechess.runtime.DrawAction
-
Creates a draw action.
- DrawAction(boolean, boolean) - Constructor for record class com.fortemate.dicechess.runtime.DrawAction
-
Creates an instance of a
DrawActionrecord class. - DrawDecisionContext - Record Class in com.fortemate.dicechess.runtime
-
Authenticated pre-roll context for deciding an opponent's pending draw offer.
- DrawDecisionContext(String, String, long, String, GameClock) - Constructor for record class com.fortemate.dicechess.runtime.DrawDecisionContext
-
Creates a validated draw-decision context.
- Draw decisions - Section in package com.fortemate.dicechess.runtime
- drop() - Static method in record class com.fortemate.dicechess.runtime.DoubleResponseAction
-
Synonym for
DoubleResponseAction.decline(): drops the double and forfeits at the current stake.
E
- ENV_ACTIVE_SECRET - Static variable in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Standard environment variable name for the active webhook secret.
- ENV_BOT_TOKEN - Static variable in class com.fortemate.dicechess.runtime.CustomHandlerServer
-
Environment variable name holding the bot bearer token.
- ENV_DRAIN_DEADLINE_SECONDS - Static variable in class com.fortemate.dicechess.runtime.CustomHandlerServer
-
Environment variable name holding the drain deadline in seconds.
- ENV_PENDING_SECRET - Static variable in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Standard environment variable name for the pending/candidate webhook secret.
- ENV_PLAY_API_BASE_URL - Static variable in class com.fortemate.dicechess.runtime.CustomHandlerServer
-
Environment variable name holding play-api's base URL.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.DoubleDecisionContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.DoubleOfferAction
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.DoubleOpportunityContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.DoubleResponseAction
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Offer
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Response
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.DrawAction
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.DrawDecisionContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.GameClock
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.Response
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.TurnAction
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.TurnContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Indicates whether some other object is "equal to" this one.
- executeShutdown(HttpServer, AtomicBoolean, String, String, long) - Static method in class com.fortemate.dicechess.runtime.CustomHandlerServer
-
Executes the shutdown procedure and reports which path was taken.
F
- fromEnvironment() - Static method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Creates a key configuration from the default system environment variables ("DICECHESS_WEBHOOK_SECRET" and "DICECHESS_WEBHOOK_NEXT_SECRET").
- fromEnvironment(Map) - Static method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Creates a key configuration from a specified environment map.
G
- GameClock - Record Class in com.fortemate.dicechess.runtime
-
The game clock visible to a bot decision.
- GameClock(long, long, Long) - Constructor for record class com.fortemate.dicechess.runtime.GameClock
-
Creates an instance of a
GameClockrecord class. - gameId() - Method in record class com.fortemate.dicechess.runtime.DoubleDecisionContext
-
Returns the value of the
gameIdrecord component. - gameId() - Method in record class com.fortemate.dicechess.runtime.DoubleOpportunityContext
-
Returns the value of the
gameIdrecord component. - gameId() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the game's unique identifier.
- gameId() - Method in record class com.fortemate.dicechess.runtime.DrawDecisionContext
-
Returns the value of the
gameIdrecord component. - gameId() - Method in record class com.fortemate.dicechess.runtime.TurnContext
-
Returns the value of the
gameIdrecord component.
H
- handle(Map, String, long) - Method in class com.fortemate.dicechess.runtime.WebhookHandler
-
Handles one webhook request.
- hasActive() - Method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Returns whether an active key is configured.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.DoubleDecisionContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.DoubleOfferAction
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.DoubleOpportunityContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.DoubleResponseAction
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Offer
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Response
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.DrawAction
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.DrawDecisionContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.GameClock
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.Response
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.TurnAction
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.TurnContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Returns a hash code value for this object.
- hasPending() - Method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Returns whether a pending key is configured.
I
- id() - Method in interface com.fortemate.dicechess.runtime.DoublingDecision
-
Returns the opaque decision identifier spanning the doubling episode.
- id() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Offer
-
Returns the value of the
idrecord component. - id() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Response
-
Returns the value of the
idrecord component. - ID_PATTERN - Static variable in interface com.fortemate.dicechess.runtime.DoublingDecision
-
Regular expression pattern for a valid decision id.
- incrementMillis() - Method in record class com.fortemate.dicechess.runtime.GameClock
-
Returns the value of the
incrementMillisrecord component. - initialStake() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the initial stake in whole currency units.
- initialStake() - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Returns the value of the
initialStakerecord component. - isResign() - Method in record class com.fortemate.dicechess.runtime.DoubleOfferAction
-
Returns the value of the
isResignrecord component. - isResign() - Method in record class com.fortemate.dicechess.runtime.DoubleResponseAction
-
Returns the value of the
isResignrecord component. - isResign() - Method in record class com.fortemate.dicechess.runtime.DrawAction
-
Returns the value of the
isResignrecord component. - isResign() - Method in record class com.fortemate.dicechess.runtime.TurnAction
-
Returns the value of the
isResignrecord component.
J
- jsonBody() - Method in record class com.fortemate.dicechess.runtime.Response
-
Returns the value of the
jsonBodyrecord component. - JsonFiles - Class in com.fortemate.dicechess.runtime
-
Loads a JSON object of string keys to string values from a file — the shape an opening book, or any similarly simple lookup table, is exported as.
K
- Key rotation and verification v2 (ADR 004) - Section in package com.fortemate.dicechess.runtime
- keys() - Method in class com.fortemate.dicechess.runtime.WebhookHandler
-
Returns the immutable key configuration used by this handler.
- kind() - Method in interface com.fortemate.dicechess.runtime.DoublingDecision
-
Returns the decision kind, exactly
offerorresponse. - kind() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Offer
- kind() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Response
- KIND_OFFER - Static variable in interface com.fortemate.dicechess.runtime.DoublingDecision
-
Constant decision kind for an offer opportunity.
- KIND_RESPONSE - Static variable in interface com.fortemate.dicechess.runtime.DoublingDecision
-
Constant decision kind for an offer response.
L
- legalMoves() - Method in record class com.fortemate.dicechess.runtime.TurnContext
-
Returns the value of the
legalMovesrecord component. - loadStringMap(Path) - Static method in class com.fortemate.dicechess.runtime.JsonFiles
-
Loads
pathas a JSON object of string to string.
M
- maximumMultiplier() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the configured maximum multiplier cap.
- maximumMultiplier() - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Returns the value of the
maximumMultiplierrecord component. - mayOfferDouble() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns whether the decision actor is eligible to offer a double.
- mayOfferDouble() - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Returns the value of the
mayOfferDoublerecord component. - mayOfferDraw() - Method in record class com.fortemate.dicechess.runtime.TurnContext
-
Returns the value of the
mayOfferDrawrecord component. - Migration from v1 - Section in package com.fortemate.dicechess.runtime
- moves() - Method in record class com.fortemate.dicechess.runtime.TurnAction
-
Returns the value of the
movesrecord component.
N
- NEVER - Static variable in interface com.fortemate.dicechess.runtime.ResignPolicy
-
A policy that never requests resignation.
O
- of(String, String) - Static method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Convenience factory for creating a configuration with optional active and pending keys.
- offer() - Static method in record class com.fortemate.dicechess.runtime.DoubleOfferAction
-
Returns an action that offers a stake double.
- Offer(String, String, long) - Constructor for record class com.fortemate.dicechess.runtime.DoublingDecision.Offer
-
Creates a validated offer decision.
- offerDouble() - Method in record class com.fortemate.dicechess.runtime.DoubleOfferAction
-
Returns the value of the
offerDoublerecord component. - offerDraw() - Method in record class com.fortemate.dicechess.runtime.TurnAction
-
Returns the value of the
offerDrawrecord component. - offeredBy() - Method in record class com.fortemate.dicechess.runtime.DoubleDecisionContext
-
Returns the seat that offered the stake double.
- offeredBy() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Response
-
Returns the value of the
offeredByrecord component. - onDoubleDecision(DoubleDecisionContext) - Method in interface com.fortemate.dicechess.runtime.BotStrategy
-
Decides whether to accept or decline an opponent's pending stake double offer.
- onDoubleOpportunity(DoubleOpportunityContext) - Method in interface com.fortemate.dicechess.runtime.BotStrategy
-
Decides whether to offer a stake double before rolling on this bot's turn.
- onDrawDecision(DrawDecisionContext) - Method in interface com.fortemate.dicechess.runtime.BotStrategy
-
Decides whether to accept an opponent's pending draw offer.
- onTurn(TurnContext) - Method in interface com.fortemate.dicechess.runtime.BotStrategy
-
Chooses the complete turn and whether to offer a draw.
- opponentRemainingMillis() - Method in record class com.fortemate.dicechess.runtime.GameClock
-
Returns the value of the
opponentRemainingMillisrecord component.
P
- pending() - Method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Returns the value of the
pendingrecord component. - pendingOnly(String) - Static method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Creates a configuration containing only a pending key.
- proposedStake() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the proposed doubled stake in whole currency units.
- proposedStake() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Offer
-
Returns the value of the
proposedStakerecord component. - proposedStake() - Method in interface com.fortemate.dicechess.runtime.DoublingDecision
-
Returns the proposed doubled stake in whole PLAY_CREDIT units.
- proposedStake() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Response
-
Returns the value of the
proposedStakerecord component.
R
- remainingMillis() - Method in record class com.fortemate.dicechess.runtime.GameClock
-
Returns the value of the
remainingMillisrecord component. - REPLAY_WINDOW_SECONDS - Static variable in class com.fortemate.dicechess.runtime.Signatures
-
The signature is only accepted within this many seconds of the current time, either side.
- resign() - Static method in record class com.fortemate.dicechess.runtime.DoubleOfferAction
-
Returns an action that resigns the game.
- resign() - Static method in record class com.fortemate.dicechess.runtime.DoubleResponseAction
-
Returns an action that resigns the game.
- resign() - Static method in record class com.fortemate.dicechess.runtime.DrawAction
-
Returns an action that resigns the game.
- resign() - Static method in record class com.fortemate.dicechess.runtime.TurnAction
-
Returns a turn action that resigns the game.
- RESIGNED_ALL - Enum constant in enum class com.fortemate.dicechess.runtime.CustomHandlerServer.ShutdownOutcome
-
play-api accepted
POST /bot/games/resign-all; every game was conceded. - resignPolicy() - Method in class com.fortemate.dicechess.runtime.WebhookHandler
-
Returns the resign policy used by this handler.
- ResignPolicy - Interface in com.fortemate.dicechess.runtime
-
Policy governing whether a bot should resign incoming gameplay deliveries.
- Response - Record Class in com.fortemate.dicechess.runtime
-
An HTTP response for a webhook delivery: a status code and a JSON body, ready to write to whatever HTTP layer the caller is using.
- Response(int, String) - Constructor for record class com.fortemate.dicechess.runtime.Response
-
Creates an instance of a
Responserecord class. - Response(String, String, String, long) - Constructor for record class com.fortemate.dicechess.runtime.DoublingDecision.Response
-
Creates a validated response decision.
- roll() - Static method in record class com.fortemate.dicechess.runtime.DoubleOfferAction
-
Returns an action that declines to double and proceeds to roll.
S
- seat() - Method in record class com.fortemate.dicechess.runtime.DoubleDecisionContext
-
Returns the value of the
seatrecord component. - seat() - Method in record class com.fortemate.dicechess.runtime.DoubleOpportunityContext
-
Returns the value of the
seatrecord component. - seat() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the decision actor's seat, exactly
WhiteorBlack. - seat() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Offer
-
Returns the value of the
seatrecord component. - seat() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Response
-
Returns the value of the
seatrecord component. - seat() - Method in interface com.fortemate.dicechess.runtime.DoublingDecision
-
Returns the seat required to answer this decision, exactly
WhiteorBlack. - seat() - Method in record class com.fortemate.dicechess.runtime.DrawDecisionContext
-
Returns the value of the
seatrecord component. - seat() - Method in record class com.fortemate.dicechess.runtime.TurnContext
-
Returns the value of the
seatrecord component. - shouldResign() - Method in interface com.fortemate.dicechess.runtime.ResignPolicy
-
Returns whether the bot should resign the current delivery.
- sign(String, long, String) - Static method in class com.fortemate.dicechess.runtime.Signatures
-
Computes the hex-encoded HMAC-SHA256 signature for a delivery.
- SIGNATURE_HEADER - Static variable in class com.fortemate.dicechess.runtime.WebhookHandler
-
Header carrying the hex HMAC-SHA256 signature (see
Signatures). - Signatures - Class in com.fortemate.dicechess.runtime
-
HMAC-SHA256 signing and verification for the DiceChess webhook delivery protocol.
- Stake doubling - Section in package com.fortemate.dicechess.runtime
- start(int, String, WebhookHandler) - Static method in class com.fortemate.dicechess.runtime.CustomHandlerServer
-
Starts the server on an explicit port and path.
- start(int, String, WebhookHandler, AtomicBoolean) - Static method in class com.fortemate.dicechess.runtime.CustomHandlerServer
-
Starts the server on an explicit port and path with a shared drain flag.
- startFromEnvironment(WebhookHandler) - Static method in class com.fortemate.dicechess.runtime.CustomHandlerServer
-
Starts the server on the port named by
FUNCTIONS_CUSTOMHANDLER_PORT(default8080), servinghandlerat/api/webhook, and attaches a SIGTERM shutdown hook using environment variables. - status() - Method in record class com.fortemate.dicechess.runtime.Response
-
Returns the value of the
statusrecord component.
T
- TIMESTAMP_HEADER - Static variable in class com.fortemate.dicechess.runtime.WebhookHandler
-
Header carrying the delivery's Unix-epoch-seconds timestamp.
- toString() - Method in record class com.fortemate.dicechess.runtime.DoubleDecisionContext
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.DoubleOfferAction
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.DoubleOpportunityContext
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.DoubleResponseAction
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Offer
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.DoublingDecision.Response
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.DrawAction
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.DrawDecisionContext
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.GameClock
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.Response
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.TurnAction
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.TurnContext
-
Returns a string representation of this record class.
- toString() - Method in record class com.fortemate.dicechess.runtime.WebhookKeys
-
Returns a string representation of this record class.
- TurnAction - Record Class in com.fortemate.dicechess.runtime
-
A bot's response to a
yourTurndelivery. - TurnAction(List) - Constructor for record class com.fortemate.dicechess.runtime.TurnAction
-
Creates a turn action that does not offer a draw and does not resign.
- TurnAction(List, boolean) - Constructor for record class com.fortemate.dicechess.runtime.TurnAction
-
Creates a turn action that does not resign.
- TurnAction(List, boolean, boolean) - Constructor for record class com.fortemate.dicechess.runtime.TurnAction
-
Creates an immutable turn action.
- TurnContext - Record Class in com.fortemate.dicechess.runtime
-
Authenticated context for the turn a bot must play.
- TurnContext(String, String, long, String, GameClock, List, boolean) - Constructor for record class com.fortemate.dicechess.runtime.TurnContext
-
Creates a validated context with an immutable deep copy of the legal-move paths.
- turnSeat() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the seat whose turn it is.
- turnSeat() - Method in record class com.fortemate.dicechess.runtime.DoublingState
-
Returns the value of the
turnSeatrecord component.
V
- VALID_CUBE_VALUES - Static variable in record class com.fortemate.dicechess.runtime.DoublingState
-
Permitted doubling cube values.
- VALID_MULTIPLIERS - Static variable in record class com.fortemate.dicechess.runtime.DoublingState
-
Permitted maximum multiplier caps.
- valueOf(String) - Static method in enum class com.fortemate.dicechess.runtime.CustomHandlerServer.ShutdownOutcome
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.fortemate.dicechess.runtime.CustomHandlerServer.ShutdownOutcome
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verify(WebhookKeys, long, String, String, long) - Static method in class com.fortemate.dicechess.runtime.Signatures
-
Verifies a delivery's signature and freshness against configured active and/or pending keys.
- verify(String, long, String, String, long) - Static method in class com.fortemate.dicechess.runtime.Signatures
-
Verifies a delivery's signature and freshness against a single secret.
- version() - Method in record class com.fortemate.dicechess.runtime.DoubleDecisionContext
-
Returns the value of the
versionrecord component. - version() - Method in record class com.fortemate.dicechess.runtime.DoubleOpportunityContext
-
Returns the value of the
versionrecord component. - version() - Method in interface com.fortemate.dicechess.runtime.DoublingContext
-
Returns the authoritative game-state version carried by the delivery.
- version() - Method in record class com.fortemate.dicechess.runtime.DrawDecisionContext
-
Returns the value of the
versionrecord component. - version() - Method in record class com.fortemate.dicechess.runtime.TurnContext
-
Returns the value of the
versionrecord component.
W
- WebhookHandler - Class in com.fortemate.dicechess.runtime
-
Authenticates and dispatches DiceChess webhook deliveries to a
BotStrategy. - WebhookHandler(WebhookHandler, ResignPolicy) - Constructor for class com.fortemate.dicechess.runtime.WebhookHandler
-
Creates a handler identical to
sourceexcept for its resign policy. - WebhookHandler(WebhookKeys, BotStrategy) - Constructor for class com.fortemate.dicechess.runtime.WebhookHandler
-
Creates a handler with an immutable key configuration and without the
GET /games/{id}/movesfallback. - WebhookHandler(WebhookKeys, String, BotStrategy) - Constructor for class com.fortemate.dicechess.runtime.WebhookHandler
-
Creates a handler with an immutable key configuration that fetches
GET /games/{id}/moveswhen a turn's inline move tree is capped. - WebhookHandler(WebhookKeys, String, BotStrategy, ResignPolicy) - Constructor for class com.fortemate.dicechess.runtime.WebhookHandler
-
Creates a handler with an immutable key configuration and custom resign policy.
- WebhookHandler(String, BotStrategy) - Constructor for class com.fortemate.dicechess.runtime.WebhookHandler
-
Creates a handler with a single active secret and without the
GET /games/{id}/movesfallback. - WebhookHandler(String, String, BotStrategy) - Constructor for class com.fortemate.dicechess.runtime.WebhookHandler
-
Creates a handler with a single active secret that fetches
GET /games/{id}/moveswhen a turn's inline move tree is capped. - WebhookHandler(String, String, BotStrategy, ResignPolicy) - Constructor for class com.fortemate.dicechess.runtime.WebhookHandler
-
Creates a handler with a single active secret and custom resign policy.
- WebhookKeys - Record Class in com.fortemate.dicechess.runtime
-
Immutable configuration for active and pending webhook secrets.
- WebhookKeys(String, String) - Constructor for record class com.fortemate.dicechess.runtime.WebhookKeys
-
Creates and validates an immutable webhook key configuration.
- What is deliberately not here - Section in package com.fortemate.dicechess.runtime
All Classes and Interfaces|All Packages|Constant Field Values