lichess-org / scalachess

Chess API written in scala. Immutable and free of side effects.
https://lichess.org
MIT License
638 stars 199 forks source link

Export `Node[A]` or chess tree to different format #551

Open lenguyenthanh opened 3 months ago

lenguyenthanh commented 3 months ago

Similar to #536, We could potentially implement different type classes to export Node[A] (which is the presentation of chess tree, pgn) to different formats. Here are some examples on top of my head:

Oziomajnr commented 1 month ago

Anyone working on this? I'd like to have a look

lenguyenthanh commented 1 month ago

Hey, thanks for interested in the issue. Probably no one is working on this. But tbh, this is quiet difficult task. It is probably similar to this: https://github.com/lichess-org/scalachess/pull/562 and it's follow up PRs, but a bit more complicated I think. I'm not sure how to handle it yet.

If you still interested I can probably write more about how it should be solved and maybe some step by step guide to work on this. But I don't have that on top of my head right now.

Oziomajnr commented 1 month ago

Ok, thanks, if you could provide a little more context, I could analyze the problem and propose a solution before I start implementing.

lenguyenthanh commented 1 month ago

great, I'll try to find time to write it down then. I'll probably do it this weekend.