# How to Play

## Requirements

* MetaMask wallet (or any Base-compatible wallet)
* ETH on **Base Mainnet**
* A friend or opponent to play against

## Step 1 — Connect Wallet

Click **CONNECT & PLAY** on the landing page. MetaMask will prompt you to connect and switch to Base Mainnet automatically.

## Step 2 — Find a Match

You have two ways to find an opponent:

### ⚡ Find Match (Auto)

1. Go to the **Find Match** tab in the lobby
2. Select your wager amount (0.005–0.05 ETH)
3. Click **FIND MATCH**
4. If an opponent is waiting with the same wager → you are instantly matched
5. If no opponent is found → your game is listed in the lobby and you wait

### 🏟 Browse Lobby (Manual)

1. Go to the **Browse Lobby** tab
2. See all open games from other players
3. Click **JOIN** on any game you want to play
4. Your wager is automatically matched to that game

## Step 3 — Play Chess

Once matched, the game starts immediately:

* **White** moves first (game creator)
* **Black** moves second (game joiner)
* Click a piece to select it, click a destination to move
* Drag and drop also supported

## Step 4 — Game Over

| Result                | Action                                                   |
| --------------------- | -------------------------------------------------------- |
| You win by checkmate  | Opponent submits loss on-chain → you receive 1.9× payout |
| You lose by checkmate | You submit loss on-chain → opponent receives payout      |
| You resign            | Click RESIGN → loss submitted automatically              |
| Draw / Stalemate      | Both players can claim refund after 2 hours via timeout  |

## Tips

* Make sure you have enough ETH to cover your wager + gas fees
* Games are peer-to-peer — both players must stay connected
* If opponent disconnects, wait for the 2-hour timeout to claim refund


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://playpixelchess.gitbook.io/playpixelchess-docs/how-to-play.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
