Chess has more written about it than any other game, which can make it feel impossible to know where to start. The good news is that most games between beginners and club players are decided by a handful of things: hanging pieces, simple tactics and not knowing how to finish a won ending. Fix those and your results jump.

This guide gives you a routine to run before each move, the checkmates you must know, a few endgame rules that win games, and a clear picture of how our computer opponent thinks on each level, including what it does not understand. That last part is your road to beating Hard.

How our version is set up

All the standard rules are in: castling on both sides, en passant, promotion to a queen, rook, bishop or knight, check and checkmate. A game is drawn by stalemate, by the same position appearing three times, after 50 moves by each side with no capture or pawn move, or when the pieces left cannot possibly mate. When a pawn reaches the last row a small Promote to panel appears so you can pick the new piece.

Whoever moves first plays White, and the first move swaps every game, so against the computer you play White in your first game and Black in the next. Player 1 always sits at the bottom. A move list in standard notation runs beside the board, along with the captured pieces and the material lead, which makes it easy to look back and see where a game turned.

A thinking routine for every move

Before you move, ask what your rival's last move does. What does the moved piece attack now, and what did it stop defending? Most blunders happen because a player looks only at their own plans and misses a simple threat.

Next, look at forcing moves for both sides in this order: checks, captures and threats. Checks first, because they limit the replies. Then every capture, counting what is attacked and what is defending. Then moves that attack something. If you find a forcing line that wins material or mates, play it. If you do not, choose a sensible improving move, like bringing a piece to a better square or putting a rook on an open file.

Finally, run a blunder check on the move you picked. After it, is every piece of yours still defended or safe? Does it allow a check, fork or pin you missed? This last ten seconds saves more games than any opening you could learn.

The tactics that decide most games

A fork is one piece attacking two things at once. Knights are the classic forkers because their jumps are hard to see, and a knight check that also hits a queen or rook wins material on the spot. A pin is an attack on a piece that cannot move without exposing something more valuable behind it. A skewer is the reverse: the valuable piece is in front, it moves, and the piece behind falls.

Two more patterns turn up constantly. A discovered attack happens when one piece moves out of the way and reveals an attack from the piece behind it. And the back-rank mate catches a castled king whose own pawns block its escape, when a rook or queen lands on the back row. Giving your king a little air with a pawn move later in the game prevents that.

When you lose material, look back and name the pattern. Players who can name what went wrong spot it much earlier next time.

Mates and endgame rules you need

Learn to mate with king and queen against a lone king, and then with king and rook. The method is the same: use your heavy piece to cut the enemy king off on a shrinking box, then bring your own king close to help. With the queen, be careful near the edge: every move, check that the enemy king has at least one legal move unless you are giving mate, or you will stalemate and only draw.

In king and pawn endings, two ideas matter most. The first is opposition: when the kings face each other with one square between them, the side that does not have to move is usually better, because the other king must give way. The second is the rule of the square: imagine a square from your rival's pawn to its promotion row. If your king can step into that square, it can catch the pawn.

In general, once most pieces are gone, your king becomes a strong piece. Bring it to the center, and push any pawn that has no enemy pawn in front of it or on the files beside it.

How the Bot thinks

The Bot runs in the background of your browser and searches ahead move by move, trying captures and promotions first. At the end of each line it keeps playing out captures until the position is quiet, so it rarely misjudges a simple exchange. Checks get a little extra search depth too.

When it scores a position it counts material, with a pawn worth 100 points, a knight 320, a bishop 330, a rook 500 and a queen 900, and adds small bonuses for good squares. Knights like the center and hate the edge, pawns gain value as they advance, and the king likes to sit tucked away on the back row until the board empties out. Once fewer than about 1,600 points of pieces besides pawns and kings are left in total, its king switches to wanting the center.

When it is clearly winning an ending, it adds a bonus for pushing your king toward the edge and bringing its own king close, so it does know how to finish. It also avoids repeating positions when it thinks it is ahead, so do not count on an easy draw by repetition.

Easy, Normal and Hard, level by level

Easy plays a completely random legal move about four times in ten. On its other moves it looks one move ahead and then adds a random swing of up to about two and a half pawns to each move's score. That noise is big enough that Easy will often leave a knight or bishop hanging, and it can miss your threats even when it sees them.

Normal looks three moves deep, your reply and its follow-up, with up to about 0.9 seconds to think and only a tiny bit of randomness. It will not leave pieces hanging to one-move threats and will spot most short forks. Hard goes up to six moves deep with up to about 1.6 seconds, with almost no randomness, which makes it sharp in tactical positions.

Beating Hard: play the long game

Hard's scoring knows material and good squares, but nothing else. It has no idea about pawn structure: doubled pawns, isolated pawns, a protected passed pawn or a weak square in its camp all look about the same to it. It also does not know about king safety beyond liking its king on the back row, and it has no notion of rooks on open files. Those are your edges.

So keep the position calm and solid, where six moves of tactics do not change much, then play for the things it cannot judge. Trade into endgames where you have a better pawn structure. Create a passed pawn early and support it slowly. Put your rooks on open files and double them. Build a kingside attack with pawns and pieces that only becomes dangerous several moves later, beyond what it sees.

Avoid wild positions with lots of loose pieces. That is exactly where its search shines. Normal can be beaten with the same plan, and it also falls for simple two-move combinations that Hard would see.

Playing a friend

In 2 Players mode you share one screen, Player 1 at the bottom, and colours swap after each game. You can also play with a keyboard: use the arrows to pick a square, press Enter to pick up or drop a piece, and Escape to let go.

For two devices, press Play online at the top, host a party, send your friend the code and pick Chess. No account is needed, and each of you plays on your own screen. If you enjoy the tactics side of chess, Checkers on this site is full of the same kind of forced captures and combinations.