Index

B C D E G H I J L O R S T V W 
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 clock record component.
Clock(long, long, Long) - Constructor for record class lv.id.jc.dicechess.runtime.TurnContext.Clock
Creates an instance of a Clock record 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 dfen record 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 gameId record 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 incrementMillis record component.

J

jsonBody() - Method in record class lv.id.jc.dicechess.runtime.Response
Returns the value of the jsonBody record 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 legalMoves record component.
loadStringMap(Path) - Static method in class lv.id.jc.dicechess.runtime.JsonFiles
Loads path as 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 opponentRemainingMillis record component.

R

remainingMillis() - Method in record class lv.id.jc.dicechess.runtime.TurnContext.Clock
Returns the value of the remainingMillis record 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 Response record 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 (default 8080), serving handler at /api/webhook.
status() - Method in record class lv.id.jc.dicechess.runtime.Response
Returns the value of the status record 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 state carries 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 TurnContext record 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}/moves from playApiBaseUrl whenever the envelope's inline legal-move tree is capped — see TurnContext.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}/moves fallback — TurnContext.legalMoves() will be null on the rare turn where the envelope's inline tree is capped.
What is deliberately not here - Section in package lv.id.jc.dicechess.runtime
 
B C D E G H I J L O R S T V W 
All Classes and Interfaces|All Packages|Constant Field Values