Score darts leg
score_darts_legUse this when the user wants a 501 or 301 darts leg scored: "score my 501 leg", "I threw T20 T20 T20, then S20, then out on D10", "darts scorer, double out". Send each visit to the oche as a turn of up to 3 darts (formats: S20, D16, T19, SB, DB, or 0). Applies standard bust rules (a bust scores nothing and the turn ends; darts after a finish are ignored; double-out requires a double or inner bull to finish unless double_out is false). Returns remaining, per-turn detail, busts, darts thrown, the three-dart average, a checkout suggestion when one exists, and a CSV of the leg. It is not for cricket or around-the-clock variants, and it does not track multi-leg matches — one leg per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | Leg starting score: 501 (standard) or 301. | |
| turns | Yes | Turns in order; each turn has up to 3 darts. A new entry per visit, e.g. one turn containing T20 and D20. | |
| double_out | No | Require a double (or inner bull) to finish, e.g. true for a double-out leg. Default true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| busts | Yes | ||
| start | Yes | ||
| turns | Yes | ||
| scored | Yes | ||
| csv_url | Yes | ||
| checkout | Yes | ||
| finished | Yes | ||
| downloads | Yes | ||
| remaining | Yes | ||
| double_out | Yes | ||
| darts_thrown | Yes | ||
| three_dart_average | Yes |