Index
All Classes and Interfaces|All Packages|Constant Field Values
B
- Bots with no engine of their own - Section in package lv.id.jc.dicechess.runtime
C
- clock() - Method in record class lv.id.jc.dicechess.runtime.TurnContext
-
Returns the value of the
clockrecord component. - Clock(long, long, Long) - Constructor for record class lv.id.jc.dicechess.runtime.TurnContext.Clock
-
Creates an instance of a
Clockrecord class. - CustomHandlerServer - Class in lv.id.jc.dicechess.runtime
-
A minimal HTTP server for the Azure Functions custom-handler model: one path, one
WebhookHandler, no framework.
D
- dfen() - Method in record class lv.id.jc.dicechess.runtime.TurnContext
-
Returns the value of the
dfenrecord component.
E
- equals(Object) - Method in record class lv.id.jc.dicechess.runtime.Response
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class lv.id.jc.dicechess.runtime.TurnContext.Clock
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class lv.id.jc.dicechess.runtime.TurnContext
-
Indicates whether some other object is "equal to" this one.
G
- gameId() - Method in record class lv.id.jc.dicechess.runtime.TurnContext
-
Returns the value of the
gameIdrecord component.
H
- handle(Map, String, long) - Method in class lv.id.jc.dicechess.runtime.WebhookHandler
-
Handles one delivery.
- hashCode() - Method in record class lv.id.jc.dicechess.runtime.Response
-
Returns a hash code value for this object.
- hashCode() - Method in record class lv.id.jc.dicechess.runtime.TurnContext.Clock
-
Returns a hash code value for this object.
- hashCode() - Method in record class lv.id.jc.dicechess.runtime.TurnContext
-
Returns a hash code value for this object.
I
- incrementMillis() - Method in record class lv.id.jc.dicechess.runtime.TurnContext.Clock
-
Returns the value of the
incrementMillisrecord component.
J
- jsonBody() - Method in record class lv.id.jc.dicechess.runtime.Response
-
Returns the value of the
jsonBodyrecord component. - JsonFiles - Class in lv.id.jc.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.
L
- legalMoves() - Method in record class lv.id.jc.dicechess.runtime.TurnContext
-
Returns the value of the
legalMovesrecord component. - loadStringMap(Path) - Static method in class lv.id.jc.dicechess.runtime.JsonFiles
-
Loads
pathas a JSON object of string to string. - lv.id.jc.dicechess.runtime - package lv.id.jc.dicechess.runtime
-
Transport runtime for DiceChess webhook bots.
O
- opponentRemainingMillis() - Method in record class lv.id.jc.dicechess.runtime.TurnContext.Clock
-
Returns the value of the
opponentRemainingMillisrecord component.
R
- remainingMillis() - Method in record class lv.id.jc.dicechess.runtime.TurnContext.Clock
-
Returns the value of the
remainingMillisrecord component. - REPLAY_WINDOW_SECONDS - Static variable in class lv.id.jc.dicechess.runtime.Signatures
-
The signature is only accepted within this many seconds of the current time, either side.
- Response - Record Class in lv.id.jc.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 lv.id.jc.dicechess.runtime.Response
-
Creates an instance of a
Responserecord class.
S
- sign(String, long, String) - Static method in class lv.id.jc.dicechess.runtime.Signatures
-
Computes the hex-encoded HMAC-SHA256 signature for a delivery.
- SIGNATURE_HEADER - Static variable in class lv.id.jc.dicechess.runtime.WebhookHandler
-
Header carrying the hex HMAC-SHA256 signature (see
Signatures). - Signatures - Class in lv.id.jc.dicechess.runtime
-
HMAC-SHA256 signing and verification for the DiceChess webhook delivery protocol.
- start(int, String, WebhookHandler) - Static method in class lv.id.jc.dicechess.runtime.CustomHandlerServer
-
Starts the server on an explicit port and path.
- startFromEnvironment(WebhookHandler) - Static method in class lv.id.jc.dicechess.runtime.CustomHandlerServer
-
Starts the server on the port named by
FUNCTIONS_CUSTOMHANDLER_PORT(default8080), servinghandlerat/api/webhook. - status() - Method in record class lv.id.jc.dicechess.runtime.Response
-
Returns the value of the
statusrecord component.
T
- TIMESTAMP_HEADER - Static variable in class lv.id.jc.dicechess.runtime.WebhookHandler
-
Header carrying the delivery's Unix-epoch-seconds timestamp.
- toString() - Method in record class lv.id.jc.dicechess.runtime.Response
-
Returns a string representation of this record class.
- toString() - Method in record class lv.id.jc.dicechess.runtime.TurnContext.Clock
-
Returns a string representation of this record class.
- toString() - Method in record class lv.id.jc.dicechess.runtime.TurnContext
-
Returns a string representation of this record class.
- TurnContext - Record Class in lv.id.jc.dicechess.runtime
-
What a strategy is told about the turn it must play — everything the webhook envelope's
statecarries that a move-choosing function plausibly needs, beyond the position itself. - TurnContext(String, String, TurnContext.Clock, List) - Constructor for record class lv.id.jc.dicechess.runtime.TurnContext
-
Creates an instance of a
TurnContextrecord class. - TurnContext.Clock - Record Class in lv.id.jc.dicechess.runtime
-
The game clock as of this turn.
V
- verify(String, long, String, String, long) - Static method in class lv.id.jc.dicechess.runtime.Signatures
-
Verifies a delivery's signature and freshness.
W
- WebhookHandler - Class in lv.id.jc.dicechess.runtime
-
Orchestrates one webhook delivery: the ownership handshake, signature verification, and dispatch to the bot's move-choosing function.
- WebhookHandler(String, String, Function) - Constructor for class lv.id.jc.dicechess.runtime.WebhookHandler
-
Creates a handler bound to one secret and one strategy, fetching
GET /games/{id}/movesfromplayApiBaseUrlwhenever the envelope's inline legal-move tree is capped — seeTurnContext.legalMoves(). - WebhookHandler(String, Function) - Constructor for class lv.id.jc.dicechess.runtime.WebhookHandler
-
Creates a handler bound to one secret and one strategy, without the
GET /games/{id}/movesfallback —TurnContext.legalMoves()will benullon the rare turn where the envelope's inline tree is capped. - What is deliberately not here - Section in package lv.id.jc.dicechess.runtime
All Classes and Interfaces|All Packages|Constant Field Values