{"inline_daily":{"chess-openings-explorer":{"board_label":"Chessboard: choose a piece, then its destination square","square_piece":"{{square}}, {{piece}}","square_empty":"{{square}}, empty","square_target_piece":"{{square}}, {{piece}}, capture available","square_target_empty":"{{square}}, legal move","piece":{"wp":"white pawn","wn":"white knight","wb":"white bishop","wr":"white rook","wq":"white queen","wk":"white king","bp":"black pawn","bn":"black knight","bb":"black bishop","br":"black rook","bq":"black queen","bk":"black king"},"back":"Take back","reset":"Reset","flip":"Flip board","turn_white":"White to move","turn_black":"Black to move","moves_title":"Moves played","copy_pgn":"Copy PGN","no_moves":"No moves yet: play on the board or pick a next move.","load_error":"The opening database could not be loaded. Check your connection and try again.","retry":"Try again","loading":"Loading the opening database…","opening_title":"Opening of this position","start_position":"Starting position","out_of_book":"This position is not in the database: name of the last listed position, after {{line}}.","transposition":"Transposition: same position as the reference line {{line}}.","no_named":"No named position along this path.","next_title":"Next moves in the database","move_header":"Move","name_header":"Resulting position","lines_header":"Lines","unnamed":"no name of its own","no_next":"No listed move from this position.","search_label":"Search an opening","search_placeholder":"Name (Sicilian) or ECO code (B20)","search_count":"Showing {{shown}} of {{total}} results","search_none":"No opening found.","names_note":"Database of {{n}} named lines (ECO codes A00 to E99). Names are the database's own, in English.","no_stats":"No game statistics or win rates: only the tree of named openings, loaded once by your browser.","credits":"Openings: lichess-org/chess-openings (CC0) · Pieces: Colin M. L. Burnett (BSD) · Move rules: chess.js (BSD-2)"}},"docs_daily":{"tools":{"chess-openings-explorer":{"content":{"title":"ECO codes and the opening tree: how a position gets its name","intro":"ECO codes sort openings under five letters, from A00 to E99. The tool relies on lichess's open database of 3,865 named lines: it shows the name and code of the current position, or of the last named position along your path, then the moves that lead to further variations.","details":"

How the tool names a position

Each line of the lichess database pairs an ECO code, an English name and a sequence of moves. Those moves were replayed once with chess.js to store the resulting position (the FEN without move counters). After each move on the board, the tool looks the position up; if it is not there, it steps back one move at a time to the last named position, the method the database authors recommend. Matching positions rather than move orders catches transpositions.

Worked example

The database holds 3,865 lines and 500 codes from A00 to E99: 823 lines under A, 781 under B, 1,250 under C, 644 under D and 367 under E. From the starting position it lists 20 first moves; 1. e4 opens 2,032 lines and 1. d4 opens 1,333. After 1. e4 c5 (B20, Sicilian Defense), 20 White replies are listed and 2. Nf3 covers 302 lines. The orders 1. Nf3 d5 2. d4 and 1. d4 d5 2. Nf3 reach the same position, named D02 Queen's Pawn Game: Zukertort Variation.

Limits

Names are the database's own, in English. No game statistics are shown: the lichess games explorer requires an OAuth2 login and the tool calls no online service. For a position reached by a move order missing from the database, next moves only appear if that position is itself listed. Promotion is always to a queen.

Sources and dates: lichess-org/chess-openings (CC0); chess.js (BSD-2-Clause); lichess API, Opening Explorer (OAuth2); pieces by Colin M. L. Burnett (BSD) (checked 29/10/2026)

"},"faqs":[{"question":"What does an opening's ECO code mean?","answer":"It is a letter from A to E followed by two digits, from A00 to E99, grouping openings into families. The lichess database uses all 500 codes for 3,865 lines: the Sicilian Defense, 1. e4 c5, is B20 and the Ruy Lopez, 1. e4 e5 2. Nf3 Nc6 3. Bb5, is C60."},{"question":"How do I find an opening's name from the moves played?","answer":"Play the moves on the board or pick them from the list of next moves. The tool shows the position's name and code; once you leave the database, it keeps the name of the last listed position and says after which move you left it."},{"question":"What is a transposition in chess?","answer":"It is a different move order that reaches the same position. 1. Nf3 d5 2. d4 and 1. d4 d5 2. Nf3 lead to the same position, which the tool names D02 Queen's Pawn Game: Zukertort Variation, because it compares positions rather than move sequences."},{"question":"Why doesn't the tool show win percentages?","answer":"Those figures come from game databases. The lichess games explorer requires an OAuth2 login and the tool calls no service: it loads the tree of 3,865 named lines once, with no game results."}]}}}}