Issue converting multiple PGN to FEN
Chaaronn opened this issue · comments
I know this is an old lib, I've just started using it to create a chess engine that plays unseen moves from the opponent.
I've got an issue with pgnFile() giving me the same FEN for every game. Here's my code.
The output I'm getting is this. The FEN list contains the same game each time.
If you feel like picking up an old project and helping me out I'd appreciate it. :)
@Chaaronn I can take a look. Do you mind sharing a link to your PGN files?
here you go, this is modified from my set with the top 3 from the troll masters set on the repo as I thought it could be a formatting issue.
I get a 404 when I click on it - is it a private repo?
Thanks - I'll take a look - later tonight and get back.
Hey @Chaaronn - The issue was with the global class variables not being defined inside of constructors. I've fixed it - and opened a PR. Until it's merged - you can use my fork from here - https://github.com/abhinav7sinha/pgnToFen/tree/issue-9-multiple-pgn
And sorry about the delay.
Merged in to master now @Chaaronn.
Thanks for your contribution @abhinav7sinha
Thank you mate! It's for a uni project so I appreciate it