# Domino Game Validator AI Agent Connect

> A deterministic validator for standard double-six domino games.

## Overview
- **Category:** utilities
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_NsKlNdV4OyIjCB83krGWmNq7pRiD9fv68fZ3zqJU/ai-agent-connect
- **Tags:** domino, validator, game-rules, deterministic, double-six

## Description

This MCP server provides precise logic for validating moves in a standard double-six domino game. It handles complex rules including perpendicular doubles, spinner mechanics, and block game states. Use `validate_move` to check if a specific tile can be played at a given position, `get_legal_moves` to list all available options for a player, and `check_game_status` to determine if the game has ended via a win or a block.

## Tools

### check_game_status
Evaluates whether the game has reached a conclusion (win, block, or ongoing)

### get_legal_moves
Identifies all possible legal moves a player can make from their current hand

### validate_move
Determines if a specific proposed move is legal given the current state of the game

## Prompt Examples

**Prompt:** 
```
Is it legal to play the 4-4 tile on the current board?
```

**Response:** 
```
Yes, the 4-4 tile can be played on the right end of the board.
```

**Prompt:** 
```
What are my legal moves right now?
```

**Response:** 
```
You can play the 2-3 on the left end or the 5-6 on the right end.
```

**Prompt:** 
```
Has the game ended yet?
```

**Response:** 
```
No, the game is still ongoing.
```

## Frequently Asked Questions

**How do I check if a specific move is legal?**
You can use the `validate_move` tool by providing the current board state, the player's hand, and the proposed play details.

**Can this tool identify all possible moves for a player?**
Yes, the `get_legal_moves` tool will return all valid tile IDs and their corresponding board positions, as well as whether a player must pass.

**How does the tool handle the end of a game?**
The `check_game_status` tool evaluates the game state to identify if a player has won or if the game has reached a block state.
