Chess forced-mate finder
chess-sim.fmf-x402.workers.dev/mpp/chess/mate-search
Chess forced-mate finder: mate in 1 to 3 — Exhaustive search for a forced checkmate for the side to move (every defence checked), up to mate in 3, with the first move and a sample line. Reports when the search budget runs out instead of guessing. Price $0.001 per call.
GET
https://chess-sim.fmf-x402.workers.dev/mpp/chess/mate-searchUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://chess-sim.fmf-x402.workers.dev/mpp/chess/mate-search?fen=r1bqkb1r%2Fpppp1ppp%2F2n2n2%2F4p2Q%2F2B1P3%2F8%2FPPPP1PPP%2FRNB1K1NR+w+KQkq+-+4+4&max_moves=2");
console.log(await res.json());Example input
{
"fen": "r1bqkb1r/pppp1ppp/2n2n2/4p2Q/2B1P3/8/PPPP1PPP/RNB1K1NR w KQkq - 4 4",
"max_moves": "2"
}