Fen is incomplete

Discussion of chess software programming and technical issues.

Moderators: hgm, Harvey Williamson, bob

Post Reply
Henk
Posts: 5077
Joined: Mon May 27, 2013 8:31 am

Fen is incomplete

Post by Henk » Thu Feb 01, 2018 9:46 am

Fen is incomplete for it does not contain information about whether three fold repetition would occur for the next moves to be played.

Looks like you have to store position plus part of the move history of the game the position was taken from.

User avatar
hgm
Posts: 22183
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Contact:

Re: Fen is incomplete

Post by hgm » Thu Feb 01, 2018 10:05 am

Indeed, a FEN is for encoding board position, not for game history. It only contains the part of the game state relevant for deciding about move legality.

Henk
Posts: 5077
Joined: Mon May 27, 2013 8:31 am

Re: Fen is incomplete

Post by Henk » Thu Feb 01, 2018 10:46 am

I don't know if that will give a problem when doing MCTS. Now I clear the move history when searching the position for then it will comply if I store the game from the given start position (fen).

If I don't clear the move history then I search/simulate and store games where for instance only one move had been played because of three fold repetition draw.

kliles
Posts: 21
Joined: Fri Mar 23, 2012 7:35 pm
Location: Toronto Canada

Re: Fen is incomplete

Post by kliles » Fri Feb 02, 2018 9:15 pm

FEN also does not encode other information along the same lines: whether either of the Kings has moved (and moved back for example...) and the same for Rooks (with respect to the legality of castling etc).

zullil
Posts: 4878
Joined: Mon Jan 08, 2007 11:31 pm
Location: PA USA

Re: Fen is incomplete

Post by zullil » Fri Feb 02, 2018 9:19 pm

kliles wrote:FEN also does not encode other information along the same lines: whether either of the Kings has moved (and moved back for example...) and the same for Rooks (with respect to the legality of castling etc).
But it does explicitly indicate castling availability.

bob
Posts: 20340
Joined: Mon Feb 27, 2006 6:30 pm
Location: Birmingham, AL

Re: Fen is incomplete

Post by bob » Sat Feb 03, 2018 8:00 pm

kliles wrote:FEN also does not encode other information along the same lines: whether either of the Kings has moved (and moved back for example...) and the same for Rooks (with respect to the legality of castling etc).
Eh? FEN has ALWAYS included castling status for both directions, both sides. The KQkq you often see means that white can castle both directions (KQ) and same for black (kq). If the king moves, those are not shown for that side. If either rook moves, the corresponding K or Q is removed...
Last edited by bob on Mon Feb 12, 2018 10:14 pm, edited 1 time in total.

kliles
Posts: 21
Joined: Fri Mar 23, 2012 7:35 pm
Location: Toronto Canada

Re: Fen is incomplete

Post by kliles » Wed Feb 07, 2018 4:21 pm

Thanks for the rebuttal! I appreciate the correction. :oops:

Post Reply