Chess — guidebook and playbook
You play White against Stockfish 19 Lite, running locally as Black. White moves first. Your goal is to checkmate the black king: threaten it so that Black has no legal way to escape. Kings are never captured. There is no clock, so take your time.
Start playing
Choose Casual, Thoughtful or Strong in the Opponent selector before making your move. Casual remains the initial setting. The selector is unavailable while the computer thinks. Tap or click a white piece, then a square marked with an amber dot or capture ring. The computer replies after its search finishes. The board always has White at the bottom, with files a–h running left to right and ranks 1–8 running bottom to top.
White pieces have a white fill and dark outline; black pieces have a black fill and pale outline. The pale and grey board squares do not change ownership. Amber marks show the last move and your selected piece. A red ring marks the king whose turn it is when that king is in check.
How the pieces move
- King: one square in any direction. It cannot move into attack or stand beside the other king.
- Queen: any number of squares horizontally, vertically or diagonally, with no piece blocking its route.
- Rook: any number of squares horizontally or vertically, with no blocker.
- Bishop: any number of squares diagonally, with no blocker. It stays on its starting square colour.
- Knight: two squares in one direction and one at a right angle, an L shape. It can jump over pieces.
- Pawn: one square straight forward into an empty square; from its starting rank it may move two squares if both are empty. White moves toward rank 8, Black toward rank 1. A pawn captures one square diagonally forward, rather than straight ahead.
Except for the special moves below, capture an opposing piece by landing on its square. You cannot land on your own piece or make a move that leaves your king in check. Only legal destinations are marked. Selecting an empty square or an opposing piece without a legal selected capture clears your selection; it does not make a move.
Three special moves
Castling moves the king and a rook together. White castles on the king side by selecting e1 then g1; the rook moves h1 to f1. Queen-side castling selects e1 then c1; the rook moves a1 to d1. Black uses the corresponding rank-8 squares. The king and that rook must never have moved, and the squares between them must be empty. The king cannot castle while in check, through an attacked square or onto an attacked square. Moving a king or rook away and back does not restore its castling right.
En passant is a pawn capture immediately after an opposing pawn advances two squares and lands beside your pawn. Your pawn moves diagonally into the square that the opposing pawn crossed, removing that pawn from the adjacent square. For example, White has a pawn on e5 and Black plays d7–d5: White may play e5–d6 immediately. Waiting a turn loses that opportunity. It is illegal if it exposes your king to check.
Promotion happens when a pawn reaches the far rank. Choose queen, rook, bishop or knight in the promotion dialog. You may create an additional queen or another piece even if your original one is still on the board. You cannot promote to a king or keep the pawn. Escape dismisses the dialog without moving; select the destination again to choose a promotion.
Check, wins and draws
In check, you must move the king to safety, capture the attacker or block its line where possible. A knight attack cannot be blocked. Checkmate ends the game immediately: you win when Black is checkmated; the computer wins when White is checkmated.
Stalemate is a draw: the player to move is not in check but has no legal move. This edition also automatically ends a game for these library draw conditions:
- Threefold repetition: the same position occurs three times, including the same side to move and relevant castling/en-passant rights. The occurrences need not be consecutive.
- 50-move rule: 50 moves by each player, or 100 half-moves, have passed without a pawn move or capture.
- Insufficient material: kings alone; king and one bishop or knight against a lone king; or kings and only bishops with every bishop on the same square colour.
These are chess.js 1.4.0's automatic draw decisions. In over-the-board rules, threefold repetition and the 50-move draw normally require a claim; this game requires no claim. Its insufficient-material detector is the stated library rule, not a promise to recognise every possible dead position. Checkmate takes precedence if the mating move also reaches the 50-move threshold. There are no draw offers or resignation controls.
Controls and the move list
On desktop or touch devices, select a piece then its marked destination. With a square focused, the arrow keys move focus one square horizontally or vertically; Enter or Space selects that square. Tab reaches the board buttons and other controls. How to play opens short help; Back to play or Escape closes it. Game-input shortcuts do not operate through an open dialog.
The story so far lists moves in standard algebraic notation. K, Q, R, B and N mean king, queen, rook, bishop and knight; a pawn has no letter. A square such as e4 is a destination, x means a capture, + means check and # means checkmate. O-O is king-side castling, O-O-O is queen-side castling, and =Q is promotion to a queen. Extra file/rank letters distinguish two pieces that could reach the same square.
Take back rewinds your last move and the computer's reply. If you use it while the computer is still thinking, it cancels that pending reply and takes back just your move. You can also take back from a finished game and continue playing. The opponent strength remains selected.
Opponent strengths
All three levels use Stockfish 19 Lite in a background browser worker. Casual is the gentlest setting, with reduced skill and a short search. Thoughtful uses medium skill and about 0.7 seconds of thinking time. Strong uses full engine skill and about 1.5 seconds. Actual strength and response time depend on your device; these are relative difficulty levels, not Elo ratings. The engine downloads about 1.8 MB on first use and is included in the offline cache after a complete online load. Moves stay on your device; no AI service or server computes the replies.
If Stockfish cannot load or run, the notice explains the problem and Retry computer tries the same position again. Take back and Restart remain available. If retry fails, reconnect and reload online in a current browser. There is no weaker fallback opponent.
Changing the selector changes the strength for the next computer move; it keeps the board. The game waits on your turn. There is no pause button or clock. Opening help does not cancel a pending computer reply, which may finish behind the help dialog.
A worked example
A standard opening idea is e2–e4: the pawn takes two steps and opens lines for the queen and bishop. Suppose Black replies e7–e5. You can develop the knight g1–f3, attacking the e5 pawn and bringing a piece toward the centre. If Black then develops b8–c6, the knight defends that pawn. A bishop move such as f1–c4 develops another piece and helps prepare castling once the king-side route is clear and safe.
The notation is 1. e4 e5 2. Nf3 Nc6 3. Bc4. This is an illustration of legal moves and development; Stockfish may choose different replies. Follow the actual board rather than expecting a scripted opening.
A practical playbook
- Check threats first. Before moving, look for checks, captures and undefended pieces for both sides.
- Develop pieces. Bring knights and bishops into useful squares and contest the centre with pieces and pawns.
- Protect the king. Castling often helps, but inspect the destination and the opposing attack first.
- Look one reply ahead. Ask which piece or square Black can attack after your move. Stockfish can look several replies ahead.
- Count exchanges. A queen is usually worth more than a rook, and a rook more than a bishop or knight. A larger capture can still be a mistake if you lose more on the reply.
- Avoid accidental stalemate. When ahead with very little enemy material, leave the opposing king a legal move unless you are delivering checkmate.
- Use Take back to learn. Try another response to a threat and compare the position, without treating a takeback game as a rated match.
Results, replay and progress
The result banner appears when a game ends. The notice names checkmate or the draw reason, and the final board and move list remain visible. New game or the restart icon asks before replacing the current board. Restart confirms; Keep playing or Escape cancels. A new game retains the chosen strength.
Progress exists only while this game instance stays open. Reloading or opening another game instance starts a fresh board. There are no saves, accounts, clocks or online opponents. The full guidebook opens in another tab so your current game stays open; its Back to Chess link opens a fresh standalone game in that guide tab.
Install, offline and printing
Load the complete standalone game online once and let offline setup finish. The game and full guidebook then work offline in a browser that supports service workers. Install uses your browser's app installation flow when available; otherwise follow the displayed browser-menu instructions. On iPhone/iPad Safari, use Share then Add to Home Screen. Installation is optional. An embedded component leaves installation and offline setup to its host.
Clearing browser/site data removes the offline files; load the page online again to restore them. Offline caching saves the application files, not your current match. Use your browser's Print command on the full guide to print it or save a PDF. Physical-phone performance and device installation have not been verified by desktop touch emulation.
Troubleshooting
If a square has no amber mark after selecting your piece, that destination is illegal. Check for a blocking piece, an occupied friendly square or a move that exposes your king. If there are no usable white moves, the computer may still be thinking or the game may have ended; read the notice.
If castling is unavailable, check that the king and rook have never moved, the route is empty and the king is safe on its start, crossing and destination squares. For en passant, the opposing two-step move must be the immediately previous move. If a promotion was cancelled, select the destination again.
If offline loading fails, reconnect and reload the full standalone page. If the browser cannot offer installation, use browser play or its Add to Home Screen command where available.
Provenance
The legal-move engine is the locally included chess.js 1.4.0 by Jeff Hlywa, licensed BSD-2-Clause: chess.js source. Its full licence remains in public/vendor/LICENSE. The board, SVG piece artwork, interface and guide wording were authored for this arcade. Chess is a traditional game; no commercial game artwork is used.
Stockfish.js 19 Lite is GPLv3, with its original licence, credits and matching source/build archive included under public/vendor/stockfish/. The engine files are unmodified. GNU GPLv3 licence · Engine credits · Matching source and build instructions.