国际象棋棋盘摆局助手
在交互式棋盘上摆放任意棋局,导出或导入FEN记谱,并高亮显示棋子走法。
关于此工具
在带有坐标标签a-h和1-8的交互式8x8棋盘上放置、移动和删除棋子。从棋子面板中选择棋子,点击格子放置,点击已有棋子的格子高亮显示该棋子可以走到的位置。将您的棋局导出为FEN记谱以在国际象棋引擎中使用,或导入FEN字符串即时加载任意棋局。
使用方法
- 1 点击「重置到起始位置」加载标准起始棋局,或点击「清空棋盘」得到空棋盘。
- 2 从棋子面板中选择棋子(白色或黑色,从国王到兵)。
- 3 点击空格子放置所选棋子;点击已有棋子的格子查看走法高亮或切换删除。
- 4 点击「导出FEN」将棋局复制到剪贴板,或粘贴FEN字符串并点击「导入FEN」加载棋局。
What this tool is for — and what it deliberately is not
This is a position editor, not a chess engine. Its job is to let you build any arrangement of pieces on an 8×8 board and turn that arrangement into FEN — the standard text string that chess software reads — or to take a FEN string and rebuild the position visually. It does not enforce the rules of chess. You can place two white kings, stack pawns on the back rank, or set up a position that could never arise in a real game. That freedom is the point: it makes the tool ideal for composing puzzles, diagramming a lesson, or capturing a position from a book.
How FEN actually encodes a board
Forsyth–Edwards Notation describes a whole position in a single line. The first and longest part is the piece placement, read rank by rank from the 8th rank (Black's back row) down to the 1st, with ranks separated by /. Within each rank, an uppercase letter is a White piece and a lowercase letter is a Black piece — K/k king, Q/q queen, R/r rook, B/b bishop, N/n knight, P/p pawn — and a digit means that many consecutive empty squares. So 8 is an empty rank and 4P3 means four empties, a white pawn, then three empties.
The standard starting position is rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1. The trailing fields after the board describe whose turn it is, castling rights, the en passant square, and the move counters. This editor focuses on the board itself: when you export, it writes the piece layout you built and fills the remaining fields with a neutral default of w - - 0 1 (White to move, no castling rights recorded, no en passant, fresh counters). If you need specific side-to-move or castling data, edit those trailing fields by hand after exporting.
A worked example
Start from a blank board. Select the white king from the palette and click e1. Select the black king and click e8. Select a white pawn and click e4. Press Export FEN and you get a string whose board section is 4k3/8/8/8/4P3/8/8/4K3, followed by w - - 0 1. Read it back to check your understanding: rank 8 is 4k3 (four empties, the black king on e8, three empties), the pawn rank 4 is 4P3, and rank 1 is 4K3 with the white king on e1. Copy that line into Lichess's board editor or paste it into Stockfish, and the exact position appears.
Movement hints, and their honest limits
Click a piece already on the board and the tool highlights every square that piece type could reach by its geometry — a rook's ranks and files, a bishop's diagonals, a knight's L-shapes, the king's eight neighbours, a pawn's forward and capture squares. This is a teaching aid for showing how each piece moves. It is purely geometric: the highlights ignore other pieces entirely, so they do not stop at a blocker, they do not exclude moving into check, and they do not validate legality for the current game state. Treat them as "where this kind of piece moves on an empty board," not as "the legal moves available right now."
Genuine use cases
- Setting up puzzles and studies. Build the position once, export the FEN, and load it into any analysis engine to solve or verify a tactic.
- Transcribing a position from a book or photo. Recreate the diagram by clicking pieces into place, then export a FEN you can analyse on a computer.
- Teaching beginners. Use Reset to Start, then drag the lesson forward; use the movement highlights to show a new player exactly how a knight or bishop travels.
- Sharing a position. FEN is plain text, so a single line of it can be pasted into a chat, an email, or a forum post and reconstructed perfectly by the reader.
Tips and common mistakes
- Clicking an occupied square does not replace the piece. A first click on an occupied square selects it and shows movement hints; clicking it again deselects. To take a piece off, switch on Eraser mode and click it. To swap pieces, erase first, then place.
- FEN reads top-down, board reads bottom-up. The first group in a FEN string is rank 8 (Black's side), which trips up newcomers who expect it to start from White. The on-board coordinate labels (a–h, 1–8) help you keep oriented.
- Imported strings only need a valid board section. If an import fails, the most common culprit is a malformed piece-placement field — wrong letters, ranks that do not add up to eight squares, or the wrong number of
/separators. - Remember the missing metadata on export. Because side-to-move and castling default to a neutral value, an engine analysing your exported position assumes White moves next and no castling is available. Set those fields yourself if they matter to the analysis.
Privacy note
Everything happens in your browser. Building the board, generating FEN, and parsing an imported string are all done locally in JavaScript — no position is sent to a server. You can work entirely offline.