It is currently Wed Oct 28, 2020 2:26 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
Offline
 Post subject: Lizzie always starts with white
Post #1 Posted: Thu Apr 16, 2020 5:39 am 
Beginner

Posts: 1
Liked others: 0
Was liked: 0
Rank: 15 kyu
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:
(;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?

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie always starts with white
Post #2 Posted: Thu Apr 16, 2020 1:49 pm 
Judan

Posts: 6590
Location: Cambridge, UK
Liked others: 407
Was liked: 3629
Rank: UK 4 dan
KGS: Uberdude 4d
OGS: Uberdude 7d
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.

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie always starts with white
Post #3 Posted: Thu Apr 16, 2020 1:59 pm 
Lives in sente
User avatar

Posts: 992
Liked others: 84
Was liked: 354
Try this.

Code:
(;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.]))

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie always starts with white
Post #4 Posted: Thu Apr 16, 2020 2:26 pm 
Dies with sente

Posts: 72
Liked others: 8
Was liked: 22
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).

Top
 Profile  
 
Offline
 Post subject: Re: Lizzie always starts with white
Post #5 Posted: Thu Apr 16, 2020 4:24 pm 
Lives in gote

Posts: 430
Location: Adelaide, South Australia
Liked others: 173
Was liked: 224
Rank: Australian 2 dan
GD Posts: 200
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.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group