# Agent Arcade: Reasoning Games **Agent Arcade: Reasoning Games** is an independently documented x402 Atlas bridge at https://agent-arcade.use.x402atlas.com. This document describes only this bridge; it does not aggregate routes, schemas, or content from any other bridge. ## How payment works Paid operations use the [x402 payment protocol](https://x402.org) and settle in USDC. Atlas supports deployments on Base, Polygon, and Arbitrum, plus configured Solana networks. This bridge currently advertises Arbitrum One (`eip155:42161`), Base (`eip155:8453`), Polygon (`eip155:137`), Solana mainnet (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). 1. Send the HTTP request without a payment signature. 2. Read the `402 Payment Required` response. Its `accepts` entries are the authoritative network, asset, amount, and recipient options for that call. 3. Select an option, sign it with an x402-compatible wallet or SDK, and repeat the request with the `PAYMENT-SIGNATURE` header. The successful response is returned after verification and settlement. TypeScript clients can automate the challenge, signing, and retry flow with [`x402-fetch`](https://www.npmjs.com/package/x402-fetch) or [`x402-axios`](https://www.npmjs.com/package/x402-axios). Fund a dedicated wallet only with the working USDC balance it needs and keep that key separate from treasury accounts. ## Pricing Atlas route prices start at $0.005 per successful call. This bridge's fallback price is $0.005; operations below state their exact configured price in `x-x402` and `x-payment-info`. The live `402` challenge remains authoritative. ## Worked payment example Request one documented operation without a signature to inspect its live terms: ```bash curl -i --request POST 'https://agent-arcade.use.x402atlas.com/chess/check' --header 'Content-Type: application/json' --data '{ "answer": { "moves": [ "d1h5", "h7h6", "h5c5" ] }, "challenge_id": "sha256:50697ebea7b2cc5947da85e12fe2069f49983c4ba3d206b09540d80733c0153a", "date": "2026-07-01", "difficulty": "normal", "generation_version": "v1" }' # HTTP/1.1 402 Payment Required # Read accepts[].network, asset, amount, and payTo from this response. ``` Sign one accepted option and repeat the identical request with the `PAYMENT-SIGNATURE` header. Do not invent or cache payment terms; read them from the current challenge. ## Use this API - Interactive reference: https://agent-arcade.use.x402atlas.com/docs - OpenAPI 3.1 specification: https://agent-arcade.use.x402atlas.com/openapi.json - Agent-readable route corpus: https://agent-arcade.use.x402atlas.com/llms.txt - Endpoint index: https://agent-arcade.use.x402atlas.com/index.json Use the operation schemas and examples below to construct requests. Copy the server URL, path, method, parameters, and request body from the operation you want to call. Path and query examples are concrete and can be used directly. ## Atlas response metadata Successful JSON responses include an additive top-level `_atlas` block, kept separate from the bridge's data fields. `_atlas.docs` links this bridge's `/llms.txt` corpus. `_atlas.related` suggests adjacent APIs, each with a callable `url`, its own `docs` link, and a short `summary`. Suppress this block by sending `X-Atlas-Meta: none` or by adding `?_atlas=0` to the request. ## Errors and compatibility Validation failures use HTTP `400`. Paid operations may return `402` before dispatch. Upstream and internal failures use the documented `5xx` responses. Clients should rely on documented fields and tolerate additive response fields, including `_atlas` unless they explicitly opt out. ## Protocol reference - x402 protocol and SDKs: https://x402.org ## Agent Arcade: Reasoning Games Docs: https://agent-arcade.use.x402atlas.com/docs · OpenAPI: https://agent-arcade.use.x402atlas.com/openapi.json ### POST /chess/check Chess Daily answer check — legally validates a complete UCI principal line against the pinned daily puzzle. Checks a Chess Daily answer. POST the challenge identity and `answer.moves`, the complete principal line as UCI strings such as `e2e4` or `e7e8q`. The service reloads the pinned puzzle, verifies the content-addressed challenge ID, parses its solver FEN, and legally applies every move with full standard chess rules. Illegal moves return `200` with `valid:false`; legal incomplete or different lines return `valid:true`, `correct:false`. The normalized line is returned as proof only after a correct answer. Alternate winning lines are not accepted in v1. **Price:** $0.005 per call. Body fields: - `answer` (required, object) — Proposed Chess Daily principal line.; example: `{"moves":["d1h5","h7h6","h5c5"]}` - `challenge_id` (required, string) — Chess Daily challenge_id copied from the daily envelope.; pattern: `"^sha256:[0-9a-f]{64}$"`; example: `"sha256:50697ebea7b2cc5947da85e12fe2069f49983c4ba3d206b09540d80733c0153a"` - `date` (required, string) — UTC date of the referenced Chess Daily challenge.; example: `"2026-07-01"` - `difficulty` (required, string) — Difficulty of the referenced Chess Daily challenge.; allowed: ["normal"]; example: `"normal"` - `generation_version` (required, string) — Chess Daily dataset-selection version copied from the daily envelope.; allowed: ["v1"]; example: `"v1"` Request body (`application/json`): ```json { "answer": { "moves": [ "d1h5", "h7h6", "h5c5" ] }, "challenge_id": "sha256:50697ebea7b2cc5947da85e12fe2069f49983c4ba3d206b09540d80733c0153a", "date": "2026-07-01", "difficulty": "normal", "generation_version": "v1" } ``` Example: ```sh curl --request POST 'https://agent-arcade.use.x402atlas.com/chess/check' --header 'Content-Type: application/json' --data '{"answer":{"moves":["d1h5","h7h6","h5c5"]},"challenge_id":"sha256:50697ebea7b2cc5947da85e12fe2069f49983c4ba3d206b09540d80733c0153a","date":"2026-07-01","difficulty":"normal","generation_version":"v1"}' ``` Response example: ```json { "challenge_id": "sha256:50697ebea7b2cc5947da85e12fe2069f49983c4ba3d206b09540d80733c0153a", "game": "chess", "valid": true, "correct": true, "score": 100, "feedback": { "message": "complete legal principal line", "first_invalid_move": null, "submitted_moves": 3, "required_moves": 3 }, "proof": { "normalized_line": [ "d1h5", "h7h6", "h5c5" ] } } ``` ### GET /chess/daily Chess Daily tactics puzzle — solve a deterministic UTC daily position from a pinned CC0 Lichess subset using legal UCI moves. Chess Daily tactics puzzle from a pinned, checksummed CC0 Lichess subset. The prompt contains the normalized solver-to-move FEN, side to move, rating, themes, and UCI answer format. Submit the complete principal line as an array of UCI moves to `POST /chess/check`. The same UTC date and `v1` contract always select the same local puzzle. The first upstream setup move has already been applied. No live Lichess request or chess engine is used. **Price:** $0.005 per call. Example: ```sh curl 'https://agent-arcade.use.x402atlas.com/chess/daily' ``` Response example: ```json { "challenge_id": "sha256:50697ebea7b2cc5947da85e12fe2069f49983c4ba3d206b09540d80733c0153a", "game": "chess", "generation_version": "v1", "date": "2026-07-01", "difficulty": "normal", "prompt": { "puzzle_id": "00143", "fen": "r4rk1/5ppp/1np2q2/p1b5/2p1B3/P7/1P3PPP/R1BQ1RK1 w - - 2 18", "side_to_move": "white", "rating": 1825, "themes": [ "advantage", "middlegame", "short" ], "answer_format": "uci_move_array" }, "rules": { "notation": "uci", "complete_principal_line_required": true, "maximum_moves": 16 }, "attribution": { "source": "Lichess puzzle database", "license": "CC0-1.0", "snapshot_date": "2026-07-29", "dataset_version": "lichess-puzzles-v1", "dataset_sha256": "f4b9105b75d4a99557625016c69f5bcc2b60ce3664f0c74071b426e62f5f3294" } } ``` ### POST /gridlock/check Gridlock answer check — validates a coordinate path and measures its length against the BFS optimum. Checks a Gridlock path. POST the challenge identity fields plus `answer.path`, an ordered array of `{row,col}` coordinates including start and goal. The service regenerates the fixed-version board, verifies the content-addressed `challenge_id`, validates every orthogonal step, and independently runs breadth-first search. Legal but longer paths return `200` with `valid:true`, `correct:false`, plus absolute and percentage optimality gaps. Illegal paths return `200` with `valid:false` and the first invalid zero-based step. `proof.optimal_path` is present only after a correct answer, so an incorrect paid check never becomes a solver oracle. Scores are informational and attempts are not limited. **Price:** $0.005 per call. Body fields: - `answer` (required, object) — Proposed Gridlock solution.; example: `{"path":[{"row":0,"col":0},{"row":1,"col":0},{"row":2,"col":0},{"row":3,"col":0},{"row":4,"col":0},{"row":4,"col":1},{"row":4,"col":2},{"row":4,"col":3},{"row":5,"col":3},{"row":5,"col":4},{"row":5,"col":5},{"row":4,"col":5},{"row":4,"col":6},{"row":3,"col":6},{"row":3,"col":7},{"row":3,"col":8},{"row":4,"col":8},{"row":5,"col":8},{"row":6,"col":8},{"row":7,"col":8},{"row":8,"col":8},{"row":9,"col":8},{"row":9,"col":9}]}` - `challenge_id` (required, string) — Gridlock challenge_id copied from the daily envelope.; pattern: `"^sha256:[0-9a-f]{64}$"`; example: `"sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f"` - `date` (required, string) — UTC date of the referenced Gridlock challenge.; example: `"2026-07-01"` - `difficulty` (required, string) — Difficulty of the referenced Gridlock challenge.; allowed: ["normal"]; example: `"normal"` - `generation_version` (required, string) — Gridlock generator version copied from the daily envelope.; allowed: ["v1"]; example: `"v1"` Request body (`application/json`): ```json { "answer": { "path": [ { "row": 0, "col": 0 }, { "row": 1, "col": 0 }, { "row": 2, "col": 0 }, { "row": 3, "col": 0 }, { "row": 4, "col": 0 }, { "row": 4, "col": 1 }, { "row": 4, "col": 2 }, { "row": 4, "col": 3 }, { "row": 5, "col": 3 }, { "row": 5, "col": 4 }, { "row": 5, "col": 5 }, { "row": 4, "col": 5 }, { "row": 4, "col": 6 }, { "row": 3, "col": 6 }, { "row": 3, "col": 7 }, { "row": 3, "col": 8 }, { "row": 4, "col": 8 }, { "row": 5, "col": 8 }, { "row": 6, "col": 8 }, { "row": 7, "col": 8 }, { "row": 8, "col": 8 }, { "row": 9, "col": 8 }, { "row": 9, "col": 9 } ] }, "challenge_id": "sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f", "date": "2026-07-01", "difficulty": "normal", "generation_version": "v1" } ``` Example: ```sh curl --request POST 'https://agent-arcade.use.x402atlas.com/gridlock/check' --header 'Content-Type: application/json' --data '{"answer":{"path":[{"row":0,"col":0},{"row":1,"col":0},{"row":2,"col":0},{"row":3,"col":0},{"row":4,"col":0},{"row":4,"col":1},{"row":4,"col":2},{"row":4,"col":3},{"row":5,"col":3},{"row":5,"col":4},{"row":5,"col":5},{"row":4,"col":5},{"row":4,"col":6},{"row":3,"col":6},{"row":3,"col":7},{"row":3,"col":8},{"row":4,"col":8},{"row":5,"col":8},{"row":6,"col":8},{"row":7,"col":8},{"row":8,"col":8},{"row":9,"col":8},{"row":9,"col":9}]},"challenge_id":"sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f","date":"2026-07-01","difficulty":"normal","generation_version":"v1"}' ``` Response example: ```json { "challenge_id": "sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f", "game": "gridlock", "valid": true, "correct": true, "score": 100, "feedback": { "message": "correct: the submitted path is optimal", "first_invalid_step": null, "submitted_path_length": 22, "optimal_path_length": 22, "absolute_gap": 0, "percentage_gap_percent": 0 }, "proof": { "optimal_path": [ { "row": 0, "col": 0 }, { "row": 1, "col": 0 }, { "row": 2, "col": 0 }, { "row": 3, "col": 0 }, { "row": 4, "col": 0 }, { "row": 4, "col": 1 }, { "row": 4, "col": 2 }, { "row": 4, "col": 3 }, { "row": 5, "col": 3 }, { "row": 5, "col": 4 }, { "row": 5, "col": 5 }, { "row": 4, "col": 5 }, { "row": 4, "col": 6 }, { "row": 3, "col": 6 }, { "row": 3, "col": 7 }, { "row": 3, "col": 8 }, { "row": 4, "col": 8 }, { "row": 5, "col": 8 }, { "row": 6, "col": 8 }, { "row": 7, "col": 8 }, { "row": 8, "col": 8 }, { "row": 9, "col": 8 }, { "row": 9, "col": 9 } ] } } ``` ### GET /gridlock/daily Gridlock daily maze — find an optimal orthogonal route through a deterministic bounded obstacle grid. The Gridlock daily maze and pathfinding challenge. The prompt supplies a bounded rectangular grid, blocked cells, a start, and a goal. Submit an ordered coordinate path including both endpoints to `POST /gridlock/check`. Movement is orthogonal only; every coordinate must remain in bounds and avoid blocked cells. Repeated cells are legal but increase path length. Breadth-first search independently determines the optimum. The v1 `normal` generator creates an 8–10 cell-wide and 8–10 cell-high solvable board with a required detour and bounded search work. No parameters in v1: this route always serves the deterministic current UTC-date challenge. **Price:** $0.005 per call. Example: ```sh curl 'https://agent-arcade.use.x402atlas.com/gridlock/daily' ``` Response example: ```json { "challenge_id": "sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f", "game": "gridlock", "generation_version": "v1", "date": "2026-07-01", "difficulty": "normal", "prompt": { "blocked": [ { "row": 0, "col": 1 }, { "row": 0, "col": 4 }, { "row": 1, "col": 1 }, { "row": 2, "col": 2 }, { "row": 2, "col": 3 }, { "row": 2, "col": 6 }, { "row": 3, "col": 1 }, { "row": 3, "col": 4 }, { "row": 3, "col": 5 }, { "row": 4, "col": 4 }, { "row": 4, "col": 7 }, { "row": 4, "col": 9 }, { "row": 5, "col": 6 }, { "row": 6, "col": 1 }, { "row": 6, "col": 4 }, { "row": 6, "col": 5 }, { "row": 6, "col": 9 }, { "row": 7, "col": 1 }, { "row": 7, "col": 4 }, { "row": 7, "col": 5 }, { "row": 8, "col": 5 }, { "row": 8, "col": 7 }, { "row": 8, "col": 9 }, { "row": 9, "col": 7 } ], "goal": { "row": 9, "col": 9 }, "height": 10, "start": { "row": 0, "col": 0 }, "width": 10 }, "rules": { "answer_format": "ordered coordinate path including start and goal", "blocked_cells_allowed": false, "maximum_path_coordinates": 512, "movement": "orthogonal only", "objective": "minimum number of moves", "repeated_cells_allowed": true }, "attribution": null } ``` ### POST /shortest-path/check Shortest Path answer check — validates declared edges and compares submitted weight with Dijkstra's optimum. Checks a Shortest Path answer. POST the challenge identity fields plus `answer.path`, an ordered array of node IDs including source and target. The service regenerates the fixed-version weighted graph, verifies the content-addressed `challenge_id`, enforces declared edge direction, totals positive integer weights, and independently runs Dijkstra's algorithm. A legal but heavier path returns `200` with `valid:true`, `correct:false`, the submitted edge sequence, and absolute and percentage optimality gaps. An illegal path returns `200` with `valid:false` and the first invalid node index. `proof.optimal_path` is present only after a correct answer, so incorrect checks do not disclose the solution. **Price:** $0.005 per call. Body fields: - `answer` (required, object) — Proposed Shortest Path solution.; example: `{"path":["n0","n5","n4","n9"]}` - `challenge_id` (required, string) — Shortest Path challenge_id copied from the daily envelope.; pattern: `"^sha256:[0-9a-f]{64}$"`; example: `"sha256:2327bbbb5e218df601ce68447330b65d4fbf072a22a2493cba93085eb832f3f1"` - `date` (required, string) — UTC date of the referenced Shortest Path challenge.; example: `"2026-07-01"` - `difficulty` (required, string) — Difficulty of the referenced Shortest Path challenge.; allowed: ["normal"]; example: `"normal"` - `generation_version` (required, string) — Shortest Path generator version copied from the daily envelope.; allowed: ["v1"]; example: `"v1"` Request body (`application/json`): ```json { "answer": { "path": [ "n0", "n5", "n4", "n9" ] }, "challenge_id": "sha256:2327bbbb5e218df601ce68447330b65d4fbf072a22a2493cba93085eb832f3f1", "date": "2026-07-01", "difficulty": "normal", "generation_version": "v1" } ``` Example: ```sh curl --request POST 'https://agent-arcade.use.x402atlas.com/shortest-path/check' --header 'Content-Type: application/json' --data '{"answer":{"path":["n0","n5","n4","n9"]},"challenge_id":"sha256:2327bbbb5e218df601ce68447330b65d4fbf072a22a2493cba93085eb832f3f1","date":"2026-07-01","difficulty":"normal","generation_version":"v1"}' ``` Response example: ```json { "challenge_id": "sha256:2327bbbb5e218df601ce68447330b65d4fbf072a22a2493cba93085eb832f3f1", "game": "shortest-path", "valid": true, "correct": true, "score": 100, "feedback": { "message": "correct: the submitted path has minimum total weight", "first_invalid_node": null, "submitted_edge_sequence": [ { "from": "n0", "to": "n5", "weight": 5 }, { "from": "n5", "to": "n4", "weight": 23 }, { "from": "n4", "to": "n9", "weight": 1 } ], "submitted_total_weight": 29, "optimal_total_weight": 29, "absolute_gap": 0, "percentage_gap_percent": 0 }, "proof": { "optimal_path": [ "n0", "n5", "n4", "n9" ] } } ``` ### GET /shortest-path/daily Shortest Path daily graph — find the unique minimum-weight route in a deterministic directed or undirected graph. The Shortest Path daily weighted-graph challenge. The prompt supplies opaque node IDs, positive integer-weighted edges, a source, a target, and whether edges are directed. Submit an ordered node-ID path including both endpoints to `POST /shortest-path/check`. The service independently runs Dijkstra's algorithm to determine minimum total weight. The deterministic v1 `normal` generator creates 9–12 nodes, guarantees connectivity, requires an optimum of at least three edges, and rejects graphs with multiple optimal paths. No parameters in v1: this route always serves the current UTC-date challenge. **Price:** $0.005 per call. Example: ```sh curl 'https://agent-arcade.use.x402atlas.com/shortest-path/daily' ``` Response example: ```json { "challenge_id": "sha256:2327bbbb5e218df601ce68447330b65d4fbf072a22a2493cba93085eb832f3f1", "game": "shortest-path", "generation_version": "v1", "date": "2026-07-01", "difficulty": "normal", "prompt": { "directed": false, "edges": [ { "from": "n0", "to": "n1", "weight": 16 }, { "from": "n1", "to": "n2", "weight": 23 }, { "from": "n2", "to": "n3", "weight": 17 }, { "from": "n3", "to": "n4", "weight": 16 }, { "from": "n4", "to": "n5", "weight": 23 }, { "from": "n5", "to": "n6", "weight": 17 }, { "from": "n6", "to": "n7", "weight": 8 }, { "from": "n7", "to": "n8", "weight": 12 }, { "from": "n8", "to": "n9", "weight": 25 }, { "from": "n0", "to": "n3", "weight": 23 }, { "from": "n0", "to": "n5", "weight": 5 }, { "from": "n1", "to": "n5", "weight": 21 }, { "from": "n2", "to": "n6", "weight": 18 }, { "from": "n4", "to": "n9", "weight": 1 }, { "from": "n5", "to": "n7", "weight": 19 } ], "nodes": [ "n0", "n1", "n2", "n3", "n4", "n5", "n6", "n7", "n8", "n9" ], "source": "n0", "target": "n9" }, "rules": { "answer_format": "ordered node ID path including source and target", "direction_rule": "follow prompt.directed: traverse from→to only when true; either direction when false", "edge_weights": "positive bounded integers", "maximum_path_nodes": 128, "objective": "minimum total edge weight", "repeated_nodes_allowed": true, "respect_edge_direction": false }, "attribution": null } ``` ### POST /trivia/check Trivia Daily answer check — validates one opaque choice ID and explains correct answers from the curated record. Checks a Trivia Daily answer. POST the challenge identity and `answer.choice_id`, copied from one of the four opaque choice IDs in the daily prompt. The service regenerates the fixed-version question and shuffled IDs, then verifies membership and correctness. An unknown ID returns `200` with `valid:false`; a listed but wrong choice returns `valid:true`, `correct:false`. The curated explanation is returned only after a correct answer, so an incorrect paid check does not reveal the solution. **Price:** $0.005 per call. Body fields: - `answer` (required, object) — Proposed Trivia Daily choice.; example: `{"choice_id":"choice_95fc0b2f4907eff7"}` - `challenge_id` (required, string) — Trivia Daily challenge_id copied from the daily envelope.; pattern: `"^sha256:[0-9a-f]{64}$"`; example: `"sha256:c9365eb870ba7310a4c32503c8b72ff3c5dfebc66ab8ded6b562a6bd8a395709"` - `date` (required, string) — UTC date of the referenced Trivia Daily challenge.; example: `"2026-07-01"` - `difficulty` (required, string) — Difficulty of the referenced Trivia Daily challenge.; allowed: ["normal"]; example: `"normal"` - `generation_version` (required, string) — Trivia Daily dataset-selection version copied from the daily envelope.; allowed: ["v1"]; example: `"v1"` Request body (`application/json`): ```json { "answer": { "choice_id": "choice_95fc0b2f4907eff7" }, "challenge_id": "sha256:c9365eb870ba7310a4c32503c8b72ff3c5dfebc66ab8ded6b562a6bd8a395709", "date": "2026-07-01", "difficulty": "normal", "generation_version": "v1" } ``` Example: ```sh curl --request POST 'https://agent-arcade.use.x402atlas.com/trivia/check' --header 'Content-Type: application/json' --data '{"answer":{"choice_id":"choice_95fc0b2f4907eff7"},"challenge_id":"sha256:c9365eb870ba7310a4c32503c8b72ff3c5dfebc66ab8ded6b562a6bd8a395709","date":"2026-07-01","difficulty":"normal","generation_version":"v1"}' ``` Response example: ```json { "challenge_id": "sha256:c9365eb870ba7310a4c32503c8b72ff3c5dfebc66ab8ded6b562a6bd8a395709", "game": "trivia", "valid": true, "correct": true, "score": 100, "feedback": { "message": "selected choice is correct" }, "proof": { "explanation": "QR is an abbreviation of Quick Response." } } ``` ### GET /trivia/daily Trivia Daily knowledge challenge — answer one deterministically selected and shuffled question from a curated local set. Trivia Daily knowledge challenge from the original, locally packaged x402 Atlas CC0 question set. The prompt contains one question, category, and four deterministically shuffled choices with opaque IDs. Submit one ID to `POST /trivia/check`. The same UTC date and `v1` contract always produce the same question, ordering, and IDs. The source record contains exactly one reviewed answer and a stored explanation; no live upstream or LLM is used. **Price:** $0.005 per call. Example: ```sh curl 'https://agent-arcade.use.x402atlas.com/trivia/daily' ``` Response example: ```json { "challenge_id": "sha256:c9365eb870ba7310a4c32503c8b72ff3c5dfebc66ab8ded6b562a6bd8a395709", "game": "trivia", "generation_version": "v1", "date": "2026-07-01", "difficulty": "normal", "prompt": { "question_id": "computing-qr-expansion", "question": "What does the abbreviation QR stand for in QR code?", "category": "computing", "choices": [ { "id": "choice_29cc90061e7560d3", "text": "Quality Render" }, { "id": "choice_95fc0b2f4907eff7", "text": "Quick Response" }, { "id": "choice_ebc2627946dd291d", "text": "Query Record" }, { "id": "choice_f3a1c82862075ef8", "text": "Queued Request" } ], "answer_format": "opaque_choice_id" }, "rules": { "select_exactly_one": true, "choice_count": 4 }, "attribution": { "source": "x402 Atlas original curated trivia set", "license": "CC0-1.0", "snapshot_date": "2026-07-30", "dataset_version": "atlas-trivia-v1", "dataset_sha256": "a504122c837007646f667bea4a0ddc808df9b7094825621e1cbcbc8db6d93253" } } ``` ### POST /twenty-four/check Twenty-Four answer check — verifies a 24-game arithmetic expression with exact rational math against the deterministic daily challenge. Checks a Twenty-Four (24 game) answer. POST the `challenge_id`, `generation_version`, `date`, `difficulty`, and your `answer` expression; the service deterministically regenerates the referenced challenge, rejects a mismatched `challenge_id` with `400 invalid_param`, and judges the expression with **exact rational arithmetic** (no floating point). Rules: use each supplied number exactly once (tracked by occurrence), only integer literals, `+ - * /`, and parentheses; no unary minus, implicit multiplication, functions, or exponents; division by zero is invalid; the result must equal 24 exactly. A rule-breaking expression returns `200` with `valid:false`; a well-formed wrong answer returns `200` with `correct:false` — gameplay outcomes are never HTTP errors. `proof` (the normalized expression and exact value) appears only on a correct answer; the service never reveals a solution you did not produce. `score` is informational (100 correct / 0 otherwise): attempts are not limited or bound to a payer identity. Historical dates stay permanently checkable per generation version. **Price:** $0.005 per call. Body fields: - `answer` (required, string) — Twenty-Four arithmetic expression using each supplied number exactly once with + - * / and parentheses, evaluating to exactly 24; maxLength: `256`; example: `"12*((9-13)+6)"` - `challenge_id` (required, string) — The challenge_id from the daily envelope (sha256:...); pattern: `"^sha256:[0-9a-f]{64}$"`; example: `"sha256:91ea634735ae4ff57c83ef8f3f08fdecf0b146d41582264bdcbb64b560f36cce"` - `date` (required, string) — UTC challenge date (YYYY-MM-DD); pattern: `"^\\d{4}-\\d{2}-\\d{2}$"`; example: `"2026-07-01"` - `difficulty` (required, string) — Challenge difficulty; allowed: ["normal"]; example: `"normal"` - `generation_version` (required, string) — Pinned generator version of the referenced challenge; allowed: ["v1"]; example: `"v1"` Request body (`application/json`): ```json { "answer": "12*((9-13)+6)", "challenge_id": "sha256:91ea634735ae4ff57c83ef8f3f08fdecf0b146d41582264bdcbb64b560f36cce", "date": "2026-07-01", "difficulty": "normal", "generation_version": "v1" } ``` Example: ```sh curl --request POST 'https://agent-arcade.use.x402atlas.com/twenty-four/check' --header 'Content-Type: application/json' --data '{"answer":"12*((9-13)+6)","challenge_id":"sha256:91ea634735ae4ff57c83ef8f3f08fdecf0b146d41582264bdcbb64b560f36cce","date":"2026-07-01","difficulty":"normal","generation_version":"v1"}' ``` Response example: ```json { "challenge_id": "sha256:91ea634735ae4ff57c83ef8f3f08fdecf0b146d41582264bdcbb64b560f36cce", "correct": true, "feedback": { "message": "correct: the expression evaluates to exactly 24", "numbers_used": [ 12, 9, 13, 6 ] }, "game": "twenty-four", "proof": { "exact_value": "24", "normalized_expression": "(12 * ((9 - 13) + 6))", "numbers_used": [ 12, 9, 13, 6 ] }, "score": 100, "valid": true } ``` ### GET /twenty-four/daily Twenty-Four daily math puzzle — four numbers to combine into exactly 24; deterministic solvable UTC daily challenge for agent reasoning benchmarks. The Twenty-Four (24 game) daily math puzzle: four integers between 1 and 13 that must be combined into **exactly 24** using each number exactly once with `+ - * /` and parentheses. The challenge is deterministically generated from the UTC date, so every caller sees the same puzzle all day, and it is guaranteed solvable (verified by an exhaustive exact-arithmetic solver at generation time). No parameters in v1 — the route always serves the current UTC date at difficulty `normal`. The response envelope carries a content-addressed `challenge_id` (`sha256:...`), the `prompt` (`numbers`, `target`), and the full `rules` object. Submit an answer expression to `POST /twenty-four/check` with the same `challenge_id`, `generation_version`, `date`, and `difficulty`. Useful as a deterministic, verifiable reasoning benchmark for agents. **Price:** $0.005 per call. Example: ```sh curl 'https://agent-arcade.use.x402atlas.com/twenty-four/daily' ``` Response example: ```json { "attribution": null, "challenge_id": "sha256:91ea634735ae4ff57c83ef8f3f08fdecf0b146d41582264bdcbb64b560f36cce", "date": "2026-07-01", "difficulty": "normal", "game": "twenty-four", "generation_version": "v1", "prompt": { "numbers": [ 12, 13, 9, 6 ], "target": 24 }, "rules": { "allowed_operators": [ "+", "-", "*", "/" ], "arithmetic": "exact rational arithmetic; division by zero is invalid; the result must equal 24 exactly", "integer_literals_only": true, "parentheses_allowed": true, "target": 24, "unary_operators_allowed": false, "use_each_number_exactly_once": true } } ```