Hey @TBest, thanks for taking the time to reply! I'm glad we had similar ideas because I'd been looking around lila/.../study too! :)
Unfortunately the tags enumeration you've linked is the tag types (one of which being termination), rather than any clarification of the valid values for the termination tag.
My scala isn't particularly strong so apologies if I've misunderstood, but the pgnImport.scala looks like it's parsing a given PGN to build a study.
I did try reverse engineering it by exporting the PGN from a match where it ended with resignation- this gave result "1-0" and termination "Normal". I also noted that the end of the moves includes a marker that the player resigns, eg "{ Black resigns. }".
However, I tested by creating the shorted PGN I thought made sense:
[Result "1-0"]
[Termination "Normal"]
- d4 1-0
...and adding this to lichess' import game page - lichess parses and infers that black resigned! So I'm not 100% sure why it can't understand when I play out the study.
I tried exporting an annotated study to PGN, manually adding the "{ Black resigns. }" at the end, and creating a new study, but this still fails to display with the proper UI - instead it just adds as an annotation.
I know it's not a huge deal, but it would be nice to get this working properly!
Hey @TBest, thanks for taking the time to reply! I'm glad we had similar ideas because I'd been looking around `lila/.../study` too! :)
Unfortunately the tags enumeration you've linked is the tag types (one of which being termination), rather than any clarification of the valid values for the termination tag.
My scala isn't particularly strong so apologies if I've misunderstood, but the pgnImport.scala looks like it's parsing a given PGN to build a study.
I did try reverse engineering it by exporting the PGN from a match where it ended with resignation- this gave result "1-0" and termination "Normal". I also noted that the end of the moves includes a marker that the player resigns, eg "{ Black resigns. }".
However, I tested by creating the shorted PGN I thought made sense:
[Result "1-0"]
[Termination "Normal"]
1. d4 1-0
...and adding this to lichess' import game page - lichess parses and infers that black resigned! So I'm not 100% sure why it can't understand when I play out the study.
I tried exporting an annotated study to PGN, manually adding the "{ Black resigns. }" at the end, and creating a new study, but this still fails to display with the proper UI - instead it just adds as an annotation.
I know it's not a huge deal, but it would be nice to get this working properly!