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 53 forks source link

Properly read/write game result from/to .sgf files #373

Open herzbube opened 2 years ago

herzbube commented 2 years ago

Currently if the app enters scoring mode and the user performs all the steps necessary to calculate a proper score, that score is forgotten as soon as the app leaves scoring mode.

Instead the score should somehow be stored in one of the Go classes (GoGame?) when the app leaves scoring mode. From there it can then be written to .sgf.

Conversely, when an .sgf is read, if an SGFCGameResult is available its information should be evaluated and stored in one of the Go classes (GoGame?).

herzbube commented 2 years ago

Some thoughts