Indietro

#tabletop

7 APIs con questa etichetta

Board Games API

The BoardGameGeek community ranking of 17,000+ board games as an API — a self-contained reference for game, hobby, recommendation and quiz apps. For each game the API returns its BoardGameGeek id, name, year published, community rank, average user rating, the Bayesian ("geek") average, how many users rated it and links to its BGG page and thumbnail. Look a game up by name or id, search by name (best-ranked first), list the top-ranked games, or list the games published in a given year. The ranks and ratings are a BoardGameGeek community snapshot (2019), while the catalogue of games, ids, names and publication years is a stable reference. Served from memory — always fast.

api.oanor.com/boardgames-api

Canasta Scoring API

Canasta-Kartenspiel-Wertung als API, lokal und deterministisch und exakt berechnet – die Punktezählung, die Canasta berühmt knifflig macht, für Sie erledigt. Der Kartenwert-Endpunkt summiert den Punktwert einer Hand oder eines Melds: Ein Joker ist 50, Asse und Zweien 20, Achten bis Könige 10, Vieren bis Siebenen und schwarze Dreien 5, und eine rote Drei ist ein 100-Punkte-Bonus – also ergeben ein Joker, ein Ass, ein König, eine Sieben und eine rote Drei 185. Der Bonus-Endpunkt addiert die Rundenboni: Eine natürliche (reine) Canasta ist 500, eine gemischte Canasta 300, jede rote Drei 100 (alle vier verdoppeln sich auf 800), Ausgehen 100 und verdecktes Ausgehen weitere 100 – zwei natürliche, eine gemischte, drei rote Dreien und Ausgehen ergibt 1.700. Der Handpunkt-Endpunkt saldiert es: die Kartenpunkte, die Sie gemeldet haben, plus die Boni, minus die Kartenpunkte, die am Ende der Runde in Ihrer Hand gestrandet sind. Alles wird lokal und deterministisch berechnet, also ist es sofort und exakt. Ideal für Canasta-Apps, Online-Kartenspiel-Ergebnisrechner, Club- und Familienspielabend-Tools und Lernhilfen. Reine lokale Berechnung – kein Key, kein Drittanbieter-Service, sofort. Exakte Ganzzahl-Mathematik. Live, nichts gespeichert. 3 Compute-Endpunkte. Klassische Canasta-Werte; Regelvarianten unterscheiden sich.

api.oanor.com/canasta-api

Dominoes Scoring API

Dominoes scoring as an API, computed locally and deterministically and exactly — the points behind a game of bones, whether you play Block, Draw or All Fives. The score endpoint gives the winner's points at the end of a hand: when a player dominoes or the game blocks, the winner takes the total pip count left in the opponents' hands — pass each opponent's remaining pips and it sums them, optionally rounding to the nearest five as many house rules do, so 12, 8 and 23 left on the table is 43, or 45 rounded. The fives endpoint scores All Fives (Muggins): a play scores whenever the open ends of the layout add up to a multiple of five, and you score that sum — open ends of 3 and 2 make 5 for five points, 5-5-5 across a spinner makes 15, while a 6 scores nothing. The set endpoint gives the statistics of a double-N set: a double-six has (6+1)(6+2)/2 = 28 tiles and 168 total pips, a double-nine has 55 tiles and 495 pips, with the heaviest tile and its pip value. Everything is computed locally and deterministically, so it is instant and exact. Ideal for dominoes apps, online and club scorekeepers, game-night and tournament tools, and learning aids. Pure local computation — no key, no third-party service, instant. Exact integer maths. Live, nothing stored. 3 compute endpoints. Standard Western dominoes; regional variants score differently.

api.oanor.com/dominoes-api

Mahjong Scoring API

Riichi (Japanese) mahjong scoring as an API, computed locally and deterministically and exactly — the points a winning hand pays, straight from the scoring table, not a lookup you have to memorise. The score endpoint turns han and fu into the payment using base = fu × 2^(2 + han): a ron pays base × 4 (a dealer ron × 6) rounded up to the nearest 100, while a tsumo splits base × 2 from the dealer and base × 1 from each non-dealer (a dealer tsumo takes base × 2 from all three) — so a non-dealer 3 han 30 fu ron is 3,900, a 4 han 30 fu is 7,700, and a non-dealer mangan ron is 8,000. The limit endpoint classifies a hand: mangan (5 han, or 3–4 han where the fu pushes the base to 2,000), haneman (6–7), baiman (8–10), sanbaiman (11–12) and yakuman (13+), with the base points behind each. The honba endpoint adds the table bonuses — 300 per honba counter and 1,000 per riichi stick — on top of the won hand. Everything is computed locally and deterministically, so it is instant and exact. Ideal for mahjong apps, online-table and scorekeeper tools, club and tournament software, and learning aids. Pure local computation — no key, no third-party service, instant. Exact scoring-table maths. Live, nothing stored. 3 compute endpoints. Japanese riichi rules; other variants (MCR, Hong Kong) score differently.

api.oanor.com/mahjong-api

Dice Probability API

Tabletop dice-probability maths as an API, computed locally and deterministically and exactly — the odds behind the rolls, not the rolls themselves. The advantage endpoint gives the D&D-style chances of beating a target on a d20 (or any die) rolling normally, with advantage (roll twice, keep the higher) or with disadvantage (keep the lower): needing an 11+ is 50 % normally, 75 % with advantage and 25 % with disadvantage, and it reports the average roll — advantage lifts a d20 from 10.5 to about 13.8. The pool endpoint handles success-counting systems (World of Darkness, Shadowrun): for a pool of dice that succeed on a face at or above a threshold it gives the chance per die, the expected number of successes and the exact binomial probability of getting exactly, or at least, a target number — six d10s succeeding on 7+ average 2.4 successes with a 45.6 % chance of three or more. The exploding endpoint gives the mean of an exploding ("acing", open-ended) die that re-rolls and adds on its maximum face — a d6 averages 4.2 instead of 3.5. Everything is computed locally and deterministically, so it is instant and private. Ideal for tabletop, virtual-tabletop, game-design and TTRPG app developers, odds-and-probability helpers, and game-master tools. Pure local computation — no key, no third-party service, instant. Exact maths, no simulation. Live, nothing stored. 3 compute endpoints. For random rolls use a dice-roller API.

api.oanor.com/dicepool-api

D&D Encounter API

Dungeons & Dragons 5th-edition encounter-building maths as an API, computed locally and deterministically — the XP-budget and difficulty numbers a Dungeon Master balances a fight with. The budget endpoint sums the per-character XP thresholds from the DMG across the party — by party size and level, or a list of mixed levels — to give the easy, medium, hard and deadly budget for one encounter (a party of four 5th-level characters has thresholds of 1,000 / 2,000 / 3,000 / 4,400 XP), plus the total adventuring-day budget. The difficulty endpoint rates an encounter: it sums the monsters' XP, multiplies by the encounter multiplier for the number of monsters (×1.5 for two, ×2 for three to six, up to ×4 for fifteen or more), and compares the adjusted XP to the party thresholds — four 450-XP monsters against that party come to 3,600 adjusted XP, a hard fight. The carry endpoint gives the carrying capacity (Strength × 15, scaled by size), push/drag/lift and the encumbrance thresholds. Everything is computed locally and deterministically, so it is instant and private. Ideal for tabletop, virtual-tabletop, DM-tool and TTRPG app developers, encounter-builder and balance tools, and game-master education. Pure local computation — no key, no third-party service, instant. Uses the DMG tables. Live, nothing stored. 3 compute endpoints. For monster stats and spells use a D&D SRD data API.

api.oanor.com/dndencounter-api

D&D 5e API

完整的龙与地下城第五版系统参考文档作为API——法术、怪物、职业、子职业、种族、背景、装备、魔法物品、状态、特性、专长、技能以及完整的规则参考。按名称查找法术(例如火球术→3级塑能系,150英尺,8d6火焰伤害)或怪物属性(例如成年红龙→挑战等级17,AC 19,256生命值,传奇动作),列出并筛选任何资源类型(按等级或学派筛选法术,按挑战等级筛选怪物),或获取24个SRD类别中任何一个的完整详细信息。由开放的dnd5eapi.co数据集支持。非常适合角色构建器、虚拟桌面、遭遇和法术卡生成器、Discord机器人和自制工具。

api.oanor.com/dnd-api