Skip to content

Get legal moves (public)

GET
/games/{id}/moves
curl --request GET \
--url https://play-api.jc.id.lv/games/example/moves

The full legal-move tree for the pending roll, never capped.

id
required
string

Game id.

The legal-move tree tied to the current roll.

Media typeapplication/json
object
version
required
integer
dfen
required
string
dicePending
required
boolean
legalMoves
required

A prefix tree of UCI micro-moves. Each key is a micro-move; its value is the tree of legal continuations. A leaf ({}) is a complete legal turn. An empty top-level tree means a forced pass. On inline copies, null means the enumeration was too large — fetch GET /games/{id}/moves.

object
key
additional properties
object recursive
Examplegenerated
{
"version": 1,
"dfen": "example",
"dicePending": true,
"legalMoves": {
"additionalProperty": {}
}
}

Unknown resource.