New answers tagged

1

You can export subsets of your tree of moves or export each variation as an individual game within the same file. Acording to the manual: "You can export an opening or topic as PGN file which then can be imported by many other chess programs. Several options let you configure the export to your preferences. The most importantone might be the option to ...


7

Yes, of course it's possible. I've done it a lot professionally. However, there is no tool that just takes a PGN chess game and convert it into images. You will need to do some programming, not very hard. Here is a link on how one can generate machine learning data set on chess. You should be able to reuse the code. I highlighted the part that will relate ...


0

I don't think calling it a "simple task" in order for someone to give you the code for free is very polite imo. On top of that, is surely doable, but its not a simple task. It requires implementing a class to handle the graphic representation, and another class to do the "translation". Also there are quite a couple of factors to take into consideration. If ...


1

If you want to access every node, then you're basically iterating over the game tree. A straightforward recursion will get you there, something like: def traverse(node): # do whatever stuff you want for the node here print(node.move) # terminating condition if (node.is_end()): return # recursion for child_node in node....


2

On a strict reading of the EPD spec, the example shown is malformed; the pv opcode should only contain a list of moves, not any commentary on it, which should be moved to other opcodes. Indeed the move numbers should not be there either, only raw SAN moves. I assume that some naive EPD author has simply dumped the output of an engine into it. Indeed ...


Top 50 recent answers are included