{
  "title": "符と翻の入力例・期待結果",
  "scope": "soh89-mahjong の固定ルールに基づく、独立照合用サンプル。実戦手牌の成立判定ではありません。",
  "rules": {
    "rawBasePoints": "符 × 2^(翻 + 2)",
    "payments": "支払者ごとに100点単位で切り上げ、ツモは支払いを合算",
    "mangan": "5翻または基本点2000点以上",
    "kiriageMangan": false,
    "countedYakuman": "13翻以上は数え役満1倍"
  },
  "paymentExamples": [
    {"id":"child-ron-30-1","input":{"dealer":false,"winType":"ron","fu":30,"han":1},"rawBasePoints":240,"basePoints":240,"payments":{"discarder":1000},"winnerTotal":1000},
    {"id":"child-tsumo-30-1","input":{"dealer":false,"winType":"tsumo","fu":30,"han":1},"rawBasePoints":240,"basePoints":240,"payments":{"dealer":500,"eachNonDealer":300,"nonDealerCount":2},"winnerTotal":1100},
    {"id":"dealer-ron-30-1","input":{"dealer":true,"winType":"ron","fu":30,"han":1},"rawBasePoints":240,"basePoints":240,"payments":{"discarder":1500},"winnerTotal":1500},
    {"id":"dealer-tsumo-30-1","input":{"dealer":true,"winType":"tsumo","fu":30,"han":1},"rawBasePoints":240,"basePoints":240,"payments":{"eachChild":500,"childCount":3},"winnerTotal":1500}
  ],
  "hanLadderAt30Fu": [
    {"han":1,"rawBasePoints":240,"basePoints":240,"childRon":1000,"dealerRon":1500},
    {"han":2,"rawBasePoints":480,"basePoints":480,"childRon":2000,"dealerRon":2900},
    {"han":3,"rawBasePoints":960,"basePoints":960,"childRon":3900,"dealerRon":5800},
    {"han":4,"rawBasePoints":1920,"basePoints":1920,"childRon":7700,"dealerRon":11600},
    {"han":5,"rawBasePoints":3840,"basePoints":2000,"tier":"満貫","childRon":8000,"dealerRon":12000}
  ],
  "acceptedAlternatives": [
    {"input":{"dealer":false,"winType":"tsumo","fu":20,"han":2},"rawBasePoints":320,"payments":{"dealer":700,"eachNonDealer":400,"nonDealerCount":2},"winnerTotal":1500},
    {"input":{"dealer":false,"winType":"ron","fu":25,"han":2},"rawBasePoints":400,"payments":{"discarder":1600},"winnerTotal":1600},
    {"input":{"dealer":false,"winType":"tsumo","fu":25,"han":3},"rawBasePoints":800,"payments":{"dealer":1600,"eachNonDealer":800,"nonDealerCount":2},"winnerTotal":3200}
  ],
  "rejectedExamples": [
    {"input":{"dealer":false,"winType":"ron","fu":20,"han":1},"errorCode":"INVALID_COMBINATION"},
    {"input":{"dealer":false,"winType":"tsumo","fu":20,"han":1},"errorCode":"INVALID_COMBINATION"},
    {"input":{"dealer":false,"winType":"ron","fu":25,"han":1},"errorCode":"INVALID_COMBINATION"},
    {"input":{"dealer":false,"winType":"tsumo","fu":25,"han":2},"errorCode":"INVALID_COMBINATION"}
  ],
  "factSources": [
    {"kind":"project-code","path":"src/score.js"},
    {"kind":"primary-reference","url":"https://www.nihon-majan.org/funokeisan.html"},
    {"kind":"primary-reference","url":"https://dourenmei.com/score-table/"}
  ]
}
