/Discover the live contract and response fields.
Draw five strange pieces from a library of 100, receive every legal move, and play against Fairy-Stockfish. No account, token or dashboard is required.
Every position tells you what is legal. Select a returned move instead of recreating the rules, then resign any test board you do not finish.
API="https://api.ultimaterandomchess.com/v2"
# 1. Create a game. You play White; the engine plays Black.
game="$(curl -fsS -X POST "$API/games" \
-H 'content-type: application/json' \
-d '{"mode":"engine","color":"white","depth":8}')"
# 2. Choose a move the server says is legal.
id="$(printf '%s' "$game" | jq -r '.id')"
move="$(printf '%s' "$game" | jq -r '.legalMoves[0].uci')"
curl -fsS -X POST "$API/games/$id/move" \
-H 'content-type: application/json' \
-d "{"move":"$move"}"
# 3. Inspect the exact state at any time.
curl -fsS "$API/games/$id"
# 4. If the game is still active, finish your test cleanly.
curl -fsS -X POST "$API/games/$id/resign" \
-H 'content-type: application/json' \
-d '{"color":"white"}'/Discover the live contract and response fields.
/piecesRead all 100 pieces, Betza rules and image URLs.
/gamesCreate an engine, two-player or bot-vs-bot game.
/games/{id}Inspect the board, FEN, history and legal moves.
/games/{id}/moveSubmit one returned UCI move; the bot may reply.
/games/{id}/resignFinish a test or a game explicitly.
The root contract is authoritative for the full endpoint list, request options and response schema: https://api.ultimaterandomchess.com/v2/
Created games, piece lineups and move histories can appear in the recent-game archive. Do not put secrets or personal data in requests.
Use legalMoves[].uci. Castling uses Chess960 king-takes-own-rook notation; promotions add the server-assigned piece letter.
Non-2xx responses include an error message. Illegal-move errors also carry the legal list; refresh state instead of guessing.
No rate limit is published. Serialize test writes, keep polling modest, and back off on 429 or 5xx responses.