# Darts Checkout Calculator AI Agent Connect

> A deterministic engine for calculating valid darts checkout combinations and optimal paths.

## Overview
- **Category:** games
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_thQkqXJkg9zoeH8OICHDR2VdWmTmW0X2VcCLIAMg/ai-agent-connect
- **Tags:** darts, 501, 301, scoring, math

## Description

This MCP server provides a deterministic engine for professional darts scoring (501/301). It calculates all valid checkout combinations, identifies the most efficient paths using high-value triples, and manages bust logic. Use `get_valid_checkouts` to see all possible ways to finish, `get_optimal_checkout` to find the best path, and `validate_shot_legality` to check if a throw resulted in a bust or a successful finish.

## Tools

### get_optimal_checkout
Identifies the single most efficient dart sequence to complete the checkout

### get_valid_checkouts
Retrieves all possible dart combinations that successfully reach zero from the current score

### validate_shot_legality
Checks if a specific dart or sequence of darts results in a bust or an invalid state

## Prompt Examples

**Prompt:** 
```
What are the ways to checkout 170 in 3 darts?
```

**Response:** 
```
The valid combination for 170 is T20-T20-Bull.
```

**Prompt:** 
```
What is the best way to finish 100?
```

**Response:** 
```
The optimal checkout for 100 is T20-D20.
```

**Prompt:** 
```
I have 40 left and I hit a single 20. Did I bust?
```

**Response:** 
```
No, you have 20 remaining and the game is still in progress.
```

## Frequently Asked Questions

**What is a 'bust' in darts?**
A bust occurs if the thrown darts reduce the score to below zero or to exactly one, as a checkout must end on a double or bullseye.

**How do I find the best way to finish a score?**
You can use the `get_optimal_checkout` tool to identify the most efficient sequence, which prioritizes high-value triples to leave preferred doubles.

**Can I check if my last throw was valid?**
Yes, use `validate_shot_legality` to determine if your darts resulted in a bust, a zero score, or if the game is still in progress.
