Chess

Full rules incl. castling and en passant โ€” play by link

Loadingโ€ฆ

Was this tool helpful?

About this tool

Standard chess. Castling, en passant, and pawn promotion (always to a queen) all follow the real rules, and a move that would leave your own king in check simply cannot be made. To castle, for example, the king and that rook must never have moved, every square between them must be empty, and none of the squares the king passes through or lands on can be under attack. The first two people take the seats; everyone after that watches. Illegal moves are rejected by the very same rules file the server uses, so tampering with dev tools cannot break the rules. The computer opponent looks 1 to 3 moves ahead with alpha-beta pruning depending on difficulty, and against the computer you always play the side that moves first (White).

How to use

  1. The board appears the moment you open it. On your own you can move both sides, so you can play across one screen or practise rules like castling and en passant.
  2. Pick an opponent on the setup screen - Solo, CPU, or Online - then press "Play" (โ–ถ).
  3. If you chose CPU, set the difficulty first (Easy, Normal, Hard). Against the computer you always play White and move first.
  4. If you chose Online, pick a time control (none, 5 min + 3 s, or 10 min + 5 s) and send the invite link. Whoever opens it first becomes your opponent; anyone after that watches.
  5. Tap a piece to see its legal squares marked with dots, then tap one to move - castling, en passant, and promotion are all handled the same way.
  6. While you're in check, only moves that save the king respond. Tapping a piece that can't move explains in one line whether it's because of check or because moving it would expose your king (a pin).
  7. Resign ("Resign") whenever you like, or once a game ends press "Play" again to start another in the same room. You can request "Undo" at any time - online, your opponent has to accept it.

Frequently asked questions

Why does nothing happen when I tap?
On your opponent's turn, pieces won't get selected. If you're only watching, you can't move at all. The server remembers who took the seats, so editing the page won't let you move on someone else's turn.
What if more than two people join?
The first two play and the rest watch. Watchers get the same live connection, so they see each move as it lands.
What does a pawn promote to?
Always a queen. Underpromotion is rare in casual games, and a chooser popup would interrupt every promotion.
How do the computer's difficulty levels differ?
By how many moves ahead they search - Easy looks 1 move ahead, Normal 2, and Hard 3, all with alpha-beta pruning. Easy also mixes in a lot of randomness, so it frequently plays something less than the best move.
Why can't I castle right now?
Check that the king and the rook on that side have never moved, that every square between them is empty, and that the king's current, passing-through, and landing squares are all free of attack. If any of those fail, the castling square simply won't show a dot.
Can I take back a move?
Yes. Playing solo or against the computer, Undo immediately returns to your last turn (including the computer's move, if it just moved). Online, a request has to be accepted by your opponent, and only the single most recent move can be undone at a time.
Can I play an online match with a clock?
Yes. When creating the room you can pick none, 5 minutes + 3 seconds, or 10 minutes + 5 seconds. It's a Fischer clock - only the side to move is ticking down, and each move adds the increment back.
I tapped a piece and no dots appeared - why?
Either you're in check and that piece can't save the king, or moving it would expose your king (a pin). A one-line hint below the board and a red flash in the middle of the board tell you which one it is.
What happens if I tap a piece twice?
Tapping the same piece again deselects it. Tapping a different piece of yours switches the selection to that one, and tapping an opponent's piece or a square you can't reach does nothing.

Similar tools