hauensteina / kifu-cam

Use your iPhone to take a picture of a Go board and export the sgf
MIT License
9 stars 5 forks source link

Territory-style scoring? #2

Open snan opened 1 year ago

snan commented 1 year ago

We mostly play territory style scoring (like in Japanese rules). Is that in the pipeline?

hauensteina commented 1 year ago

Using Japanese rules would require knowing the number of prisoners. However, the number of prisoners cannot be determined from a photo.

There are two realistic cases where the rules matter:

(1) A Black 0.5 win by Chinese rules will turn into a White win by Japanese rules if Black made the last move.

(2) In a Handicap game, by Japanese rules the handicap stones turn into komi in White's favor. Chinese rules are harder for White in handicap games.

To address (2), KifuCam first counts Chinese, then adds the number of handicap stones to the White score to arrive at the Japanese result.

Hope this helps,

Andreas

On Fri, Apr 28, 2023 at 10:55 PM snan @.***> wrote:

We mostly play territory style scoring (like in Japanese rules). Is that in the pipeline?

— Reply to this email directly, view it on GitHub https://github.com/hauensteina/kifu-cam/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH54SDGJXYIM73GQNQM3S3XDSUL7ANCNFSM6AAAAAAXQACWHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

hauensteina commented 1 year ago

A Black 0.5 win by Chinese rules will turn into a White win by Japanese rules if Black made the last move.

Actually, this is only true if Japanese rules with 6.5 komi are used. It does not matter with 5.5 or 7.5 komi.

On Sat, Apr 29, 2023 at 10:02 AM Andreas Hauenstein @.***> wrote:

Using Japanese rules would require knowing the number of prisoners. However, the number of prisoners cannot be determined from a photo.

There are two realistic cases where the rules matter:

(1) A Black 0.5 win by Chinese rules will turn into a White win by Japanese rules if Black made the last move.

(2) In a Handicap game, by Japanese rules the handicap stones turn into komi in White's favor. Chinese rules are harder for White in handicap games.

To address (2), KifuCam first counts Chinese, then adds the number of handicap stones to the White score to arrive at the Japanese result.

Hope this helps,

Andreas

On Fri, Apr 28, 2023 at 10:55 PM snan @.***> wrote:

We mostly play territory style scoring (like in Japanese rules). Is that in the pipeline?

— Reply to this email directly, view it on GitHub https://github.com/hauensteina/kifu-cam/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH54SDGJXYIM73GQNQM3S3XDSUL7ANCNFSM6AAAAAAXQACWHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

snan commented 1 year ago

Great point; my main concern was dame and final ko. As far as prisoner's are concerned, the Chinese system is fine, it gives the same delta between the player as the japanese system. It's only the last couple of moves, passing etc, endgame that can be a li'l different 😱