FEN - czbar/ChessForge GitHub Wiki
Forsyth–Edwards Notation (FEN) is a standardized single-line text format that encodes a complete chess position, including piece placement, side to move, castling rights, en passant status, and move counters. Chess Forge fully supports FEN, allowing you to:
- Copy the FEN of any position for use outside the program.
- Paste a FEN string in relevant functions to quickly set up the desired position
Copying FEN
To copy the FEN of a position, open the relevant view (Study, Game or Exercise) and select the move (blue below) to display the desired position on the main chess board. Then, using the right-click context menu of the main board (red below), select the Copy the FEN to Clipboard function (green below):
System copied the FEN of our position into the clipboard:
rq2k2r/1p2bppp/p1nppn2/8/4PB2/2N2Q1P/PP2BPP1/R2R2K1 w kq - 4 13
Pasting FEN
In certain Chess Forge functions, setting up a position is required, and having a FEN string ready allows you to do this more quickly:
Position Setup Dialog
When you run the Create New Exercise function, the system opens Position Setup dialog. Instead of manually setting up the position by dragging the desired pieces (blue below) onto the chess board, you can paste a FEN string into the FEN box (red below):
In our example, we copied to the clipboard the position of a Siberian Trap in the Smith-Morra Gambit. We run the Create New Exercise function and paste the FEN into the Position Setup dialog (red below). The system displays the position on the board (green below). When finished, we press OK (blue below):
Once the Exercise Header is completed, the new exercise is created with the pasted position (red below):
Setup Position to Search For Dialog
When you run the Find Positions function, the system opens Setup Position to Search for dialog. Instead of manually setting up the position by dragging the desired pieces (blue below) onto the chess board, you can paste a FEN string into the FEN box (red below). After pressing the OK button, the system uses the position for the search (blue below):