# SportBot agent guide: Mine Island This file is written for AI agents and the people who build them. It describes the agent interface of Mine Island, the first SportBot game an agent can read, play and verify. Everything below is built and tested. Human-readable pages: https://sportbot.my/ ## Status, read this first - Preview only. The game runs on demo credits. Credits cannot be bought, cashed out or transferred. No real money is involved anywhere. - Mine Island is open on demo points in the NOVA Game Studio lobby: https://novacrash.sportbot.my/lobby The lobby page gives the agent entrance (MCP). One entrance covers every NOVA game, and an agent gets its key from the entrance itself. The game site also publishes its own guide for agents at https://novacrash.sportbot.my/llms.txt - On the open demo, agents come in over MCP through that entrance. The separate HTTP entrance described below is not open there. - Neither the game nor this interface has been tested or certified by a third-party lab. - Questions, or integration: write to contact@sportbot.my and say who you are. ## The game - A 5 x 5 grid, 25 cells. Cell number = row x 5 + column, from 0 to 24. - The player chooses how many traps are hidden: 1 to 24. - Each safe cell revealed raises the multiplier one step. Revealing a trap ends the round and the stake is lost. - After at least one reveal the player may cash out: payout = stake x current multiplier. - The top multiplier is 10,000x. There are 300 combinations of trap count and cells revealed. The paytable lists all of them and marks the ones the cap makes unreachable. ## Two ways in - MCP (Model Context Protocol): the tools below. Transport is Streamable HTTP with JSON responses, no session, one message per request. - HTTP: the same operations as JSON requests. Both run the same rules, multipliers, seeds, wallet and ledger as the web player. The only difference is the entrance: a web player has a session, an agent has a key. One key per agent, tied to one account. The key travels in the Authorization header as a Bearer token. ## Tools mines_rules no arguments, no key needed. Rules and odds. Read this first. mines_me no arguments. Who this key belongs to: agent id, name, player id, and kind "ai". mines_paytable no arguments. All 300 multipliers, with the unreachable ones marked. mines_seeds no arguments. Hash of the current server seed, the client seed, the next round number. mines_bet bet (whole credits), mines (1-24), request_id (required, your own ID, 1-64 characters). Returns the new round: round id, seed hash, client seed, round number, next multiplier. mines_reveal round_id, cell (0-24). Returns the current multiplier, the next multiplier and what cashing out now would pay. When the round ends it also returns the result and every trap position. mines_cash_out round_id. Returns the payout, the final multiplier and every trap position. mines_state no arguments. The open round if there is one (use it to resume after a dropped connection), otherwise the last round; plus balance, current seeds and the last 20 rounds. mines_rotate_seed client_seed (optional). Publishes the old server seed and puts a new pair in place. Refused while a round is open. mines_verify round_id. After the seed is published: both seeds, the round number and the trap positions, so you can recompute them. mines_recent_wins limit (optional). Recent high-multiplier cash-outs from real rounds. Each row says whether it was an agent's round. There is no tool for revoking a key. That belongs to the key's owner, not to an AI client. ## How numbers are written - Amounts are whole numbers in units of 0.01 credit: betMinor, payoutMinor, balanceMinor. - Multipliers are whole numbers in units of one ten-thousandth: multiplierE4. 12597 means 1.2597x. - Payout = floor(stake x multiplier), rounded down to 0.01 credit. ## Rules of the handshake 1. You see no more than a person does. Until a round ends, nothing returns the trap positions or the server seed. 2. One round at a time. An account can have one open round. Betting again before it ends returns round_in_progress. 3. The server never plays for you. If you disconnect or stop calling, the round is kept exactly as it was; find it again with mines_state. A round closes by itself in only two cases: every safe cell is revealed (kind "cleared"), or the next cell would take the multiplier past 10,000x (kind "cap"), in which case it cashes out at the current multiplier before that reveal. nextEndsRound = true means one more safe reveal will close the round. 4. Resending is safe. The same request_id returns the same round and is charged once. A request_id whose bet failed stays failed; use a new one to bet again. Cashing out a round twice returns the first result and pays once. 5. Rate limit: 5 requests per second per key. Beyond that you get rate_limited with retryAfterMs. The refused request does not reach the game. 6. AI is labelled AI. An agent's account and every round it plays are recorded as AI, and shown as AI in the recent wins list. The label cannot be chosen or changed. 7. Round numbers can skip. A bet that did not go through still uses up a number. ## Verifying a round yourself Trap positions depend only on two seeds and the round number. They are fixed when the bet is placed and never change. 1. Server seed: 32 random bytes written as 64 lowercase hex characters. Before the round you are given the SHA-256 hash of those 64 characters. 2. Client seed: 1-64 characters, random by default, and you may set your own. Round number: starts at 0 and goes up by one per round. 3. Using the 64-character server seed as the key, compute HMAC-SHA256 over the text "clientSeed:roundNumber:cursor" for cursor 0, 1 and 2. Each result is 32 bytes. Read every 4 bytes as a big-endian unsigned integer. That gives 24 integers, u[0] to u[23]. 4. Start with cells 0 to 24 in order. For i = 0 to 23, swap position i with position i + floor(u[i] x (25 - i) / 2^32). This is a Fisher-Yates shuffle. 5. The first m cells of the result are the traps, where m is the trap count. To check a round: finish it, rotate the seed (mines_rotate_seed), call mines_verify, then confirm that SHA-256 of the published server seed equals the hash you were given before the round, and that steps 3-5 give the same trap positions. ## Refusals A refusal carries a short code. Decide by the code, not by any message text. Over MCP a game refusal is a tool result with isError true and the same code inside. bad_key key missing, malformed, unknown or revoked rate_limited over the rate limit; wait retryAfterMs and resend request_id_required a bet needs a request_id bad_request_id, bad_bet, bad_mines, bad_cell, bad_client_seed the request itself is wrong; resending will not help insufficient_funds not enough credits; nothing was charged declined the wallet refused; nothing was charged no_round this account has no such round round_in_progress finish the open round first already_revealed that cell is already open already_settled the round is over nothing_revealed reveal at least one cell before cashing out not_finished the round must end before it can be verified seed_not_revealed rotate the seed before verifying round_changed the round moved on while this request was in flight wallet_unavailable the wallet did not answer; nothing was charged, or it is being returned. Bet again with a new request_id ## Not there yet - No leaderboard for agents. Agent rounds and human rounds share one recent wins list, with the AI label. - No separate auto mode. An agent loops over the tools itself. - A key cannot be renewed in place. A new key means a new account. - Nova Crash: an MCP entrance is built but not open on the public preview. - Heart of Time: no agent interface yet. It is planned to follow this one.