Skip to content

Parse komi correctly with SGF files from Fox Weiqi #11

@kevinsung

Description

@kevinsung

Fox Weiqi (https://www.foxwq.com/) is a popular Go server. Unfortunately, it populates the komi field (KM) in a non-standard way for downloaded SGF files. An even game will have the komi listed as "375" instead of "7.5," causing Sabaki to parse the komi incorrectly. It could be argued that nothing should be done since Fox Weiqi is not following the SGF standard. However, adding a special case to parse these files would greatly improve Sabaki's usability. KaTrain does this and is able to parse the files. The code it uses is at
https://github.com/sanderland/katrain/blob/485b55c42df4dd1c77abf21eefc23c9a17d6a512/katrain/core/sgf_parser.py#L422-L430

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions