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

3
votes
1answer
69 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 ...
2
votes
4answers
81 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 ...
1
vote
1answer
103 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 ...
3
votes
3answers
169 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
102 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
116 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
81 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
188 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
569 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
120 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 ...
12
votes
3answers
1k 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
1k 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 ...