sgf-render
sgf-render copied to clipboard
Handle setup properties when using `--kifu`
Right now, if there are any setup properties between the numbered moves in --kifu
, the program ignores them.
I don't think there's a sensible way to handle those properties, but probably at least we should detect them and throw an error.
I should add that the MN property is also problematic. Again, I don't think there's a sensible way to handle these properties in the middle of the numbered moves of a kifu. Probably from_node_in_collection
should take first_move_number
and kifu
options, and throw an error if there are inapprorpriate properties.
It might be cleaner just to run a pre-validation step that walks through the SGF.