Rules, opening principles, and the tactics that decide games
Chess is the world's most famous strategy game: two armies of sixteen pieces face off on an 8x8 board, and the goal is to trap the enemy king in checkmate. It has been played in recognizably modern form for over five hundred years, and despite computers now playing it far better than any human, it remains endlessly rich - every game branches into positions nobody has ever seen before.
Our version implements the full rules of the game - castling, en passant, promotion, stalemate, everything - with a searching AI engine at four difficulty levels, plus real-time online play against friends through the multiplayer lobby.
White moves first, then the players alternate, moving one piece per turn. A piece captures by landing on the square an enemy piece occupies. Each piece moves differently:
Three special moves trip up beginners:
Check means your king is attacked - you must escape it immediately by moving the king, blocking, or capturing the attacker. Checkmate means there is no escape, and the game ends. Stalemate is different: the player to move has no legal moves but is not in check - that's a draw, not a win, which is why a huge material advantage can still slip away.
The four central squares (d4, d5, e4, e5) are the high ground of the board: pieces placed there or controlling them reach more squares and switch between attack and defense faster. Start with a central pawn move like e4 or d4, and aim your pieces at the middle rather than the edges.
Knights and bishops sitting on their starting squares contribute nothing. In the first eight to ten moves, get them out - knights usually to f3/c3 (or f6/c6 as Black), bishops to active diagonals. Avoid moving the same piece twice in the opening and resist grabbing pawns with your queen; an early queen gets chased around while your opponent develops for free.
Castle early, almost always within the first ten moves. A king stuck in the center is the target of nearly every quick attacking loss in beginner chess. After castling, be slow to push the pawns in front of your king - they are its shield.
One piece attacks two (or more) enemy pieces at once, so only one can escape. Knights are the classic forking piece because their jump is easy to overlook - a knight fork on king and queen wins the queen outright. Pawn forks against two pieces are just as deadly and cost almost nothing.
A bishop, rook, or queen attacks a piece that cannot (or should not) move because a more valuable piece stands behind it on the same line. A piece pinned against the king literally cannot move; a piece pinned against the queen usually shouldn't. Pinned pieces are also poor defenders - pile up attackers on them.
The pin reversed: the more valuable piece is in front and must move, exposing the piece behind it to capture. A rook check that forces the king aside and then scoops up the queen behind it is the textbook skewer.
Moving one piece unveils an attack from another piece behind it - so your moving piece can create a second threat at the same time, and your opponent can only answer one. A discovered check is the most violent version: whatever the moving piece attacks is usually lost, because the check must be dealt with first.
The PlayVersusAI chess engine evaluates material, piece activity, and king safety, and searches deeper as the difficulty rises:
| Difficulty | What to expect |
|---|---|
| Easy | Plays plausible moves but misses tactics - perfect for learning the rules. |
| Medium | Catches hanging pieces and simple forks; punishes careless play. |
| Hard | Searches several moves deep and plays purposeful, coordinated chess. |
| AI Training | Full-strength search under a time budget - expect precise, unforgiving play. |
Free to play - no account needed