Questions tagged [fen]
Forsyth-Edwards Notation (FEN) is a standard notation for recording a particular chess position, including the location of pieces, which side is to move, what castling rights are available, etc.
30
questions
3
votes
1answer
82 views
How to detect invalid pawn structures (not based on opponent material) for FEN valdation?
I'm going to further expand a FEN validation function I have been working on for some time to include illegal pawn formations such that:
... for example white pawns could
never be on a2, a3, and ...
-1
votes
1answer
60 views
Chess FEN winner
I'm new to Chess FEN notation and I'm making an online chess game, but I have one problem, I need to check after every new move if there is a winner and which one is a winner.
Can I extract that ...
3
votes
2answers
1k views
What's the point of the full move counter in FEN?
For what do you need to know the number of full moves? You still can't recreate every move in the game with FEN anyways, so I don't see the point of the full move counter. Is there any rule that ...
1
vote
1answer
286 views
Why is en passant possibility recorded in FEN regardless of whether there is a pawn ready to make the capture?
If a pawn has just moved two squares ahead, one records the square right behind it in the part of FEN for recording en passant possibility, regardless of whether there is a pawn of the opposite color ...
9
votes
4answers
10k views
Chess Puzzle Database with PGN or FEN
Is there a database of chess puzzles that have the game or positions PGN and or FEN?
2
votes
1answer
365 views
How the engine can detect the 3-fold repetition using FEN input? [duplicate]
When I run the engine (UCI interface), I usually feed the last position from the game using position fen ... command and get the best move back. The FEN encodes the possibility of the castlings, en ...
3
votes
1answer
309 views
How does X-FEN (Chess960 FEN) differentiate from traditional FEN notation?
I understand that a modified version of FEN notation is needed to properly record a Chess960 game.
I know that en passant is only slightly different, (an en passant possibility is only recorded if ...
0
votes
1answer
234 views
Can one import FENs of positions involving checkmate into Droidfish?
I recently copied the following curious position (from this answer) to clipboard, and tried pasting it in Droidfish.
3b1q1q/1N2PRQ1/rR3KBr/B4PP1/2Pk1r1b/1P2P1N1/2P2P2/8 w - - 0 1
However, the ...
2
votes
3answers
274 views
FEN inverter website/page?
This board shows the black pieces on the bottom, but the white pieces are supposed to be there; I accidentally set up the board so that white's pieces are on the black side. I am looking to flip the ...
-2
votes
1answer
122 views
FEN notation problem
See image: Why does this FEN code display incorrectly (it should describe the Portsmouth gambit)?
8
votes
1answer
3k views
Stockfish evaluation of a position from PGN
I am trying to get Stockfish's evaluation of a board position(which is in PGN format) using command line.I know it accepts board position in FEN format, but is there any way i can provide PGN format?
...
3
votes
1answer
200 views
pgn-extract suppress output
I installed pgn-extract_17.38 and want to suppress the output of
$ FEN=$(echo "1.d4 Nf6 2.Nf3 e6 3. *" | pgn-extract -F)
Processing stdin
1 game matched out of 1.
I read about suppressing methods ...
2
votes
2answers
318 views
Engine output: FEN string when blundering
What is the best way to go through a database of my games and have the computer generate a FEN string as well as the next move any time I make an error greater than, say, a minor piece loss?
I've ...
1
vote
2answers
184 views
How to determine checkmated positions using DOS/CMD, from numerous FEN/EPD chess positions?
I have a collection of checkmated chess positions, in FEN/EPD format.
Most of the time, each of these positions contains some useless pieces, that I really want to remove, in the aim of getting ...
3
votes
1answer
796 views
Is there a master list of FEN chess positions for advanced beginner/intermediate?
I'm an advanced beginner. I don't have internet access as much as I like to, so I'd much rather have a series of chess position FENs that I can put into some free chess engine and then try to play ...
13
votes
3answers
1k views
High-quality (not bitmap) diagram software
I'm looking for software than can take FEN and generate a high-quality diagram, in PDF, Postscript, Windows metafile, or something else that will look good at 1200x1200 dpi or better. I thought the ...
1
vote
1answer
77 views
Online program for FEN recalculation
I am looking for any online tools that can recalculate the the FEN values based on the current FEN and a given step. Are there any such tools or should I write one on my own.
4
votes
1answer
2k views
Chess Engine API
I am writing a C# 3D chess game in Unity. I am looking for a chess engine that can
Take in an FEN string
Return the best move to make given this FEN
Check if the board given this FEN is in checkmate
...
10
votes
2answers
1k views
Endgame FEN generator
is it possible to generate FEN strings for endgames based on specific criteria: n-pieces, w/d/l, and side to move?
So say I wanted all FEN strings for King plus Rook vs King plus Pawn (KPKR) ...
3
votes
4answers
2k views
How do I create pgn files visually?
I'm looking for a way to create PGN files visually - so I don't want to type in the position and the moves manually, but I want to set up an initial position on a board, play some moves and then ...
2
votes
1answer
306 views
Do better board representations than the standard one exist?
Consider the classical representation of the state of a chess game. I'll draw the board:
R BK BNR
PPPP PP
N Q
PP
p
np p
ppp pp
r bkqbnr
Here is its move list:
d5 d5
c4 c6
Nf3 e6
...
7
votes
5answers
829 views
Alternatives to the FEN notation
Apart from the FEN notation, are there other even more compact known chess-position notations? One that would of course also entail castling rights, and en passant possibilities.
One really missing ...
2
votes
3answers
2k views
Software to create FEN notation?
I am new to FEN notation. I understand its importance for describing position of pieces on board. I also understand FEN notations after reading about it in Wikipedia. However, it is a time taking ...
0
votes
2answers
247 views
Numerical FEN writing
What is the most compressed way to "write" a chessboard as an integer considering en passant and castling as always possible no matter what.
1
vote
1answer
190 views
Fen - Check if King is on e1/e8
Is there some easy way to check whether the black king is on e8 or the white king is on e1, when using fen?
Here the black and white king are on d1/8 r2k3r/3q4/8/8/8/8/8/R1QK2RR
Here both are ...
8
votes
1answer
795 views
Question on FEN and castling
I was reading about FEN notation, and noticed the following line in the relevant Wikipedia article:
If neither side can castle, this is "-". Otherwise, this has one or more letters: "K" (White can ...
8
votes
1answer
2k views
Differences between FEN and EPD?
I just read the description of FEN (Forsyth–Edwards Notation) and EPD (Extended Position Description), I have a basic idea of what they are, but I still have some points that are not entirely clear:
...
5
votes
1answer
223 views
Why isn't the active color allowed to be in check in a FEN legal position?
The title says it. Reading up on how to describe the position of a board, all of the requirements make sense (like two kings not being on adjacent squares and so on) except for the active color being ...
18
votes
6answers
4k views
How to know when a FEN position is legal?
I am doing a personal project, where at one point I need to validate the FEN position, I started with some basics checks, such as check if there are kings and making sure there aren't any extra rows ...
15
votes
3answers
2k views
Open source chess playing or pgn viewing libraries
Is anyone familiar with any open source chess libraries in any language that can do any of the following:
parse PGNs and/or FENs
calculate valid chess moves based on position
process an entire chess ...