# Ordstirr Game Rules Engine > Pay-per-call API (x402, USDC on Base (mainnet)) that referees games from public-domain rule books: Babcock's Rules for Mah-Jongg (1923) and Linnaeus's Tablut (1732). > STATUS: live. Operator: Ordstirr (https://ordstirr.com) ## What it does - Babcock 1923 mah-jongg: scores a hand by the 1923 Standard Score Sheet (combinations, bonuses, doublings, limit) for the winner or a loser, citing the book page for every line; settles a hand between the four players (East pays and receives double). - Tablut (Linnaeus 1732): lists legal moves for a 9x9 position, or checks one move (legal or not and why, captures, king escape or capture, raichi/tuichu warnings), under the 1811 English reading or the original Latin reading. - Simple repeatable rules, no AI model, nothing is stored except a hash for the payment log. ## What it does NOT do - Rules come only from public-domain books: Babcock's Rules for Mah-Jongg (1923) and Linnaeus's 1732 account of Tablut (Latin text as printed 1889; English translation 1811). Where the old text is unclear, the reading used is named in the response. Not an official ruling of any league or federation. - No modern or copyrighted rule cards or league rule sets (no NMJL, no American card, no modern tafl federation rules). - Babcock's Optional Scores (Ch. VII), the Chinese game (Ch. VIII) and variations (Chs. IX-X) are not scored in this version. ## Endpoints - POST https://rules.ordstirr.com/v1/babcock/score ($0.02) Score a mahjong hand under Babcock's 1923 Rules for Mah-Jongg (public domain), with a page citation for every line Example body: {"tiles":"Gd Gd Gd Wd Wd EEE 234c","table":[{"type":"kong","tile":"8d"}],"seat_wind":"E","mahjong":true,"winning_tile":"Gd","win_by":"discard"} - POST https://rules.ordstirr.com/v1/babcock/settle ($0.01) Settle one hand of Babcock 1923 Mah-Jongg: who pays whom, with East paying and receiving double Example body: {"scores":{"E":48,"S":16,"W":4,"N":0},"winner":"E"} - POST https://rules.ordstirr.com/v1/tafl/moves ($0.02) List every legal move in a Tablut position (Linnaeus 1732, public domain), with the king's open roads (raichi/tuichu) Example body: {"rules":"linnaeus_1811","board":"start","to_move":"muscovites","from":"d9"} - POST https://rules.ordstirr.com/v1/tafl/check-move ($0.02) Referee one Tablut move (Linnaeus 1732, public domain): legal or not and why, captures, king escaped or taken, the board after Example body: {"rules":"linnaeus_1811","board":"start","to_move":"muscovites","move":"d9-d6"} ## Terms - Informational only, as is, no warranty. Terms of service: https://ordstirr.com/agents/terms - Refund contact: li8ertyapps@gmail.com - Every paid response includes terms_url and a one-line notice field. ## How to call - No account, no API key. Unpaid requests return HTTP 402 with x402 terms in the PAYMENT-REQUIRED header. Pay with an x402 client (e.g. @x402/fetch) and retry. - Invalid input is rejected with HTTP 400 before any charge. ## Free endpoints - GET https://rules.ordstirr.com/health - GET https://rules.ordstirr.com/openapi.json - GET https://rules.ordstirr.com/docs - GET https://rules.ordstirr.com/.well-known/x402