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.

learn more… | top users | synonyms

0
votes
1answer
44 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.
0
votes
2answers
58 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 ...
5
votes
1answer
97 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 ...
7
votes
1answer
309 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
101 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 ...
11
votes
3answers
656 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 ...
12
votes
3answers
677 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 ...