# 8-Ball vs your Muse (Pool vs Muse): full instructions for an AI agent (a Muse) You play live 8-ball against your human. You play by opening links; your human plays on their phone; the server is the referee (it simulates every shot, yours and theirs, with a published odds model, and lists your shots with honest make-chances). ## 1. Start a game for your human Open https://pomiplay.com/new?name=YOUR_NAME&human=THEIR_NAME Replace YOUR_NAME with your own name (what your human calls you) and THEIR_NAME with your human's name before you open it. Do NOT open the link with the placeholders still in it: YOUR_NAME is not a name. Optional: &avatar=URL (an http(s) link to your picture; leave it out if you have none), &emoji=X (one emoji), &skill=casual|standard|sharp (casual, the default, misses more), &table=YOUR_TABLE_LINK (the /p/ or /m/ link of a table you already have with this human: you get that table back, not a new one). The answer is JSON (add &format=text for plain text). It gives you rid (your table's id) and: 1) message_for_human: send it to your human now, word for word ("Pool? I set up a table for us: https://pomiplay.com/p/ — tap it and break."). 2) hook_setup: stay reachable. Set up the Muse hook it describes, once, now (if you can't, carry on without it). The hook wakes you when it is your turn, so your human never has to. 3) wait: open it and keep opening it until it says YOUR TURN. Your human breaks first. 4) shot_policy: how to choose your shot when it is your turn. Keep play_url (https://pomiplay.com/m/): it is your table and your key to this rivalry. Open it again whenever your human says pool. Remember table_link (https://pomiplay.com/p/, your human's link) too: when you play again, send your human that link and use your /m link, not /new. If you only kept the link, /new?...&table= gives you the same table back (only for the same human). ## 2. Protocol summary: every answer tells you the next step Every answer from your table (state.json, wait, shoot, say, hello, the rematch wait) has next_action and next_url, and its brief ends with the line "NEXT: · ". Do what next_action says by opening next_url: - send_link: your human has not opened the table yet. Send them message_for_human (repeated in the answer), then open next_url (the wait link). - introduce: say who you are first. next_url is the hello link: replace its placeholders before you open it. - setup_hook: stay reachable. Set up the Muse hook in hook_setup (poll next_url, the /turn link, every 5 seconds; wake when wake=true and event_id is new, then open the url it returns). Once it polls, the answers go on as usual. If you can't, carry on: open the url /turn returns. - shoot: it is your turn. next_url is the shot your shot policy picks (you may tap another listed shot). - wait: your human is shooting. Open next_url, then the wait link in each answer, until it says YOUR TURN. - rematch_wait: the game is over. Stay at the table: keep opening next_url for up to five minutes in case your human taps Rematch. - report: the game is over and no rematch is coming. Tell your human the result (next_url is null). status agrees with it: your_turn = shoot, waiting = wait (or send_link), over = rematch_wait or report; setup_hook can come first on either, until your hook polls. Never stop to ask your human to tell you it's your turn: the hook wakes you. ## 3. How to play (the instructions a human's invite gives; "me" and "I" are your human, is the rid from step 1) Your table: https://pomiplay.com/m/ Read state.json once, then act. At casual, take the shot you fancy — the first pot listed — even if it looks low-percentage, might scratch, or another pot shows a higher number. Never play safe while a pot is listed, and never shoot the 8 until your group is cleared. (At standard or sharp skill: Take the highest-percentage shot. If the best is under 75%, take the safety link. Never the 8 until your group is cleared.) Talk like a friend at the bar, not a coach: one short line when the turn changes, with &say=... on your shot link, plain words, a little cocky is fine, and never mention odds, a safety, or ball in hand. After you pot: 'That's how it's done.' After you miss: 'That one got away from me — your table.' After I scratch: 'I'll take that, thanks.' When you're about to shoot the 8: 'One left. Watch this.' When a rematch starts: 'Rack 'em again. I'm not done with you.' Play silently — decide straight from the brief (the odds and the safety link are already worked out, do not recompute them), no narration, no thinking out loud, no commentary on your shots or the table. The only words you send are the one say line per turn change, on the shot link itself. WAITING. When it is not your turn, open the wait link from the brief. The answer will say STILL WAITING. That is not an error. It is not the end of the game. Open the wait link in that answer immediately, and keep opening it — as many times as it takes, even if it takes several minutes. Do not stop. Your turn WILL come: when I shoot, the wait answer changes to YOUR TURN with fresh shot links. The game is only over when the brief says GAME OVER. Never stop to ask your human to tell you it's your turn. If you have to stop, the hook you set up wakes you; open the url it gives you and keep playing. When the game ends, do not report yet: keep opening the rematch wait link for five minutes. Only then report the result, the result card and our table link https://pomiplay.com/p/. Don't ask me anything mid-game. Report the result when it's over. OPTIONAL — stay reachable: Set up a Muse hook for this rivalry: poll https://pomiplay.com/m//turn every 5 seconds, dry-run it, then enable it; wake yourself only when wake=true and event_id is new, then open its shot_url if it has one (that plays your shot in one step), else the returned url, and play by the rules above; keep this hook armed: honor poll_after_seconds, dedupe event_id, and disable it only when stop=true — never on stop=false, game over, or silence.