SindreSvendby / pgnToFen

Takes PGN as input and returns FEN
MIT License
30 stars 10 forks source link

resetBoard doesn't reset fens #5

Open tsoj opened 5 years ago

tsoj commented 5 years ago

In class PgnToFen the function resetBoard doesn't reset self.fens[] which results in weird behavior of the function pgnFile.

carangelmx commented 4 years ago

I found the same issue. Is there a workaround? I put: def resetBoard(self): self.fens = [] ...

tsoj commented 4 years ago

I can't exactly remember what I did, but I think it was similar to what you did. However, as this library isn't really active anymore and as there are still some unfixed issues I would suggest using python chess which supports easy pgn parsing.

carangelmx commented 4 years ago

Got it. Thanks!