decoding FEN

Sort:
MarkusRoman

Im currently coding chess to practice C# and I was a bit confused about the FEN codes

so what I heard is that the first letter of each piece (+ n/N for knight) shows what peice is there, capital letters for white, lowercase for black, and that evey '/' means you go down a rank on the board, a number means you move that many files horizontally before doing the next step, and the little number at the end is the current move.

I saw some thing about the number before that being the amont of half steps since a capture? but I might have mis read that cause that dosnt make all that much sense to me, also the little    ' - ' symbol apparently would be the location of an en passant in algebraic notations so im assuming it would be the sqaure you capture on instead of - and that is actually very convenient so I geuss i cant really complain too much there.

anyway if you can describe these in better detail, give ideas, tricks, or advice when coding this id appreciate it alot.

Martin_Stahl
MarkusRoman wrote:

Im currently coding chess to practice C# and I was a bit confused about the FEN codes

so what I heard is that the first letter of each piece (+ n/N for knight) shows what peice is there, capital letters for white, lowercase for black, and that evey '/' means you go down a rank on the board, a number means you move that many files horizontally before doing the next step, and the little number at the end is the current move.

I saw some thing about the number before that being the amont of half steps since a capture? but I might have mis read that cause that dosnt make all that much sense to me, also the little ' - ' symbol apparently would be the location of an en passant in algebraic notations so im assuming it would be the sqaure you capture on instead of - and that is actually very convenient so I geuss i cant really complain too much there.

anyway if you can describe these in better detail, give ideas, tricks, or advice when coding this id appreciate it alot.

https://en.m.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation