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.

Filter by
Sorted by
Tagged with
19
votes
6answers
5k 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 ...
2
votes
2answers
411 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 ...
14
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 ...
9
votes
1answer
4k 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? ...
4
votes
1answer
3k 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 ...
0
votes
2answers
295 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.