herzbube / littlego

Little Go. An iOS application that lets you play the game of Go on the iPhone or iPad.
https://littlego.herzbube.ch/
Apache License 2.0
138 stars 54 forks source link

Record game result and persist the information to SGF #414

Open herzbube opened 7 months ago

herzbube commented 7 months ago

The game result is persisted in SGF using the RE game info property.

Current state:

Desired state

What complicates matters is the support for game variations. Currently when the user changes from game variation A, where a game result exists, to game variation B, the app forgets about the game result in variation A. Examples:

While the app could be made to remember the ended states for each game variation, this information would be lost when writing to SGF. Reason: SGF allows to store only one game result for the entire game, because the RE property is a game info property that must be written to a game info node, and there can only be one game info node per game.