# Solitaire Solver AI Agent Connect

> A deterministic engine for validating Klondike solitaire moves and identifying legal plays.

## Overview
- **Category:** utilities
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_eImlVEuAOJZQh1bXXu0696C4TbgGA1puFFQ2qiYO/ai-agent-connect
- **Tags:** solitaire, klondike, game-engine, validator, decision-making

## Description

This MCP server provides a precise decision engine for Klondike solitaire. It connects AI agents to the core logic required to play the game accurately. Use `validate_move` to check if a specific card movement follows color and rank rules, `get_legal_moves` to scan the entire tableau and waste for all available tactical opportunities, and `check_winnability` to determine if the current game state is solvable. It handles standard rules including 1-card or 3-card draw mechanics and empty column King requirements.

## Tools

### check_winnability
Evaluates if the current state can lead to a win, assuming all cards are currently face-up

### get_legal_moves
Scans the entire current game state to list every possible valid move available to the player

### validate_move
Determines if a specific proposed card movement is legal under Klondike rules

## Prompt Examples

**Prompt:** 
```
Is it legal to move a Red 7 onto a Black 8 in the tableau?
```

**Response:** 
```
Yes, that is a legal move because the cards are of opposite colors and the ranks are sequential.
```

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

**Response:** 
```
You can move the Ace of Spades to the foundation or the Red 5 to the Black 6 in column 2.
```

**Prompt:** 
```
Can I win this game?
```

**Response:** 
```
Yes, there is a sequence of moves that allows all cards to be moved to the foundation.
```

## Frequently Asked Questions

**How do I check if a move is legal?**
You can use the `validate_move` tool by providing the source and destination details to confirm if the move complies with Klondike rules.

**Can this tool find all possible moves?**
Yes, the `get_legal_moves` tool scans the tableau, foundation, and waste to list every valid move available in the current state.

**How does it determine if a game is winnable?**
The `check_winnability` tool simulates potential move paths to see if all cards can reach the foundation stacks.
