Chess: play online and learn the rules

Chess is a two-player game on an 8×8 board. White moves first, and you win by checkmating the opponent's king.

Game settings

Rules of Chess

Goal of the game

Checkmate the opponent's king: it is attacked and there is no legal move to escape.

Setup

  • Each player has 16 pieces: 1 king, 1 queen, 2 rooks, 2 bishops, 2 knights and 8 pawns.
  • The board is placed with a light square in each player's right corner. The queen starts on her own color.
  • White moves first.

How to play

  1. Move one piece per turn. The king moves one square; the queen any distance in straight or diagonal lines; the rook straight; the bishop diagonally; the knight in an L-shape and can jump.
  2. Pawns move forward one square (two from their starting square) and capture diagonally.
  3. Castling: move the king two squares toward a rook that has not moved, and the rook jumps over. Not allowed out of, through or into check.
  4. En passant: a pawn that just moved two squares can be captured by an enemy pawn as if it had moved one, on the very next move only.
  5. A pawn reaching the last rank must promote to a queen, rook, bishop or knight.

Winning, losing and draws

  • Checkmate wins the game.
  • Stalemate (no legal move but not in check) is a draw.
  • Draws also happen by threefold repetition, the 50-move rule, or when neither side can possibly checkmate.

Common beginner mistakes

  • Moving into check or leaving your king in check is illegal.
  • Castling after the king or that rook has already moved.
  • Forgetting that en passant is only possible immediately.

Terms

Check
The king is under attack.
Checkmate
Check with no way out.
Stalemate
No legal move and not in check: a draw.
Castling
A special king and rook move.
Promotion
A pawn turning into another piece.

Rules used in this app

  • All standard rules are enforced: castling, en passant, promotion, check and checkmate.
  • Threefold repetition and the 50-move rule end the game as a draw automatically (in official play a player usually has to claim them).
  • There is no chess clock.

CPU level

  • Lv.1 Novice — Plays mostly random legal moves.
  • Lv.2 Beginner — Looks one move ahead and grabs material.
  • Lv.3 Intermediate — Reads 2 moves ahead with piece values and piece placement.
  • Lv.4 Advanced — Reads 3 moves ahead and follows capture sequences to the end.
  • Lv.5 Highest — Searches up to 5 moves ahead within about 2.5 seconds. A club-level beginner engine, not a master.

The level only changes how the CPU chooses its moves; the rules are the same at every level.

FAQ

How do I castle?

Select your king and tap the square two steps toward the rook. The rook moves automatically.

Can I choose the promotion piece?

Yes. A dialog lets you pick queen, rook, bishop or knight.

Is the CPU a strong engine?

No. Even Lv.5 searches only a few moves ahead. It is meant for practice.