Lizzie always starts with white

For discussing go computing, software announcements, etc.
Post Reply
kisvadim
Beginner
Posts: 1
Joined: Thu Apr 16, 2020 5:16 am
Rank: 15 kyu
GD Posts: 0

Lizzie always starts with white

Post by kisvadim »

Hello!

I've created SGF problem (in KGS client):
x — two possible moves for black (which are 'Correct.')
Click Here To Show Diagram Code
[go]$$
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . O . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . X . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . , x . . |
$$ | . . . . . . . . . . . . . . . x . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ ---------------------------------------[/go]
Here I pasted sgf code:



<Uberdude edit>

Code: Select all

(;GM[1]FF[4]CA[UTF-8]AP[CGoban:3]ST[2]
RU[Japanese]SZ[19]KM[0.00]
PW[White]PB[Black]AW[cc]AB[pd]
(;B[qp]C[Correct.])
(;B[pq]C[Correct.]))
</edit>

But when I opened this SGF file in Lizzie.0.7.2 it showed probability for white (not for black), and it drew white circles in 'x'.
Is it possible to fix it?
Uberdude
Judan
Posts: 6727
Joined: Thu Nov 24, 2011 11:35 am
Rank: UK 4 dan
GD Posts: 0
KGS: Uberdude 4d
OGS: Uberdude 7d
Location: Cambridge, UK
Has thanked: 436 times
Been thanked: 3718 times

Re: Lizzie always starts with white

Post by Uberdude »

I'm not an expert on the sgf format, so don't know if your sgf is malformed or Lizzie isn't parsing it correctly, but I can tell you Lizzie starts with black on an empty board, so if you just open Lizzie, play your black 4-4 and then white 3-3 it will be black to move and Lizzie will give you percentages for black to play at various places, including your 3-4s of interest.

So if you want Lizzie to be a perfect sgf parser I'd call this a possible bug, but if you just want to know what LeelaZero or KataGo thinks of the position just used Lizzie directly and bypass the sgf format niggles.

Edit, looking at your sgf it appears white made the first move, not black (beacause you made a 0 komi game in CGoban?), so it is expected that it is now white to play given each player alternates.
User avatar
jlt
Gosei
Posts: 1786
Joined: Wed Dec 14, 2016 3:59 am
GD Posts: 0
Has thanked: 185 times
Been thanked: 495 times

Re: Lizzie always starts with white

Post by jlt »

Try this.

Code: Select all

(;GM[1]FF[4]CA[UTF-8]AP[CGoban:3]ST[2]
RU[Japanese]SZ[19]KM[0.00]
PW[White]PB[Black]AB[pd]AW[cc]
(;B[qp]C[Correct.])
(;B[pq]C[Correct.]))
vier
Dies with sente
Posts: 91
Joined: Wed Oct 30, 2013 7:04 am
GD Posts: 0
Has thanked: 8 times
Been thanked: 29 times

Re: Lizzie always starts with white

Post by vier »

Uberdude wrote:Lizzie starts with black on an empty board, so if you just open Lizzie, play your black 4-4 and then white 3-3 it will be black to move and Lizzie will give you percentages for black to play at various places, including your 3-4s of interest.

Edit, looking at your sgf it appears white made the first move, not black, so it is expected that it is now white to play given each player alternates.
Agreed to the first part. AB and AW are setup properties, not move properties. The property PL tells who plays first. If it is not given some default is used (usually B, but after HA, AB usually W; sunjang games often have both AB and AW and first player B).
xela
Lives in gote
Posts: 652
Joined: Sun Feb 09, 2014 4:46 am
Rank: Australian 3 dan
GD Posts: 200
Location: Adelaide, South Australia
Has thanked: 219 times
Been thanked: 281 times

Re: Lizzie always starts with white

Post by xela »

This is a bug in Lizzie. Even if your SGF contains a PL tag, Lizzie will ignore it, and try to guess whose move it is based on who played (or added a stone) last.

That's why jlt's version of the SGF works. AW[cc] is the last thing in the SGF (before the variations start), white got a stone added last, so black to play next.
Post Reply