# Couldn't the SGFs of diagrams please be improved? [#6980]

RobertPauli: Couldn't the SGFs of diagrams please be improved? (2018-12-30 15:17) [#11200]

Couldn't the SGFs of diagrams please be improved?

Let me first remind you that ";" starts a SGF node, it does not end it! Now look at the second diagram of Counting Problem 1 / Solution. Its SGF reads

``` (;GM[1]FF[4]SZ[19]
GN[White takes and wins.]
PC[http://senseis.xmp.net/?CountingProblem1/Solution]AP[GoWiki:2009]
DT[2009-04-22]
C[Diagram from http://senseis.xmp.net/?CountingProblem1/Solution
```
``` White takes and wins.]
PL[W]
```
``` AB[ga][ia][gb][hb][jb][gc][ic][gd]
AW[ja][ka][la][lb][hc][jc][kc][lc][hd][id][jd]
CR[ia]
```
``` ;W[ib]C[W1]MN[1]
;W[kb]C[W3]MN[3]
```
``` ;CR[ia]
)
```

Notice that

• PC (place) should really be SO (source)
• AP should have its own line
• the initial comment should be at the last node (be it setup or move) since this is what it refers to (not sure if several C are standard . . . no)
• C[Turn on "All moves with number".] in case moves follow would make sense
• CR appears twice but should only be in the last node (be it setup or move) just like other markups (e.g. LB) for the same reason as above
• C joins each move for not much purpose (pass could have one)
• MN joins each move but should be only in the first node (like PL)
• a pass (B[]) between W1 and W3 is missing (enables MN once only and lets variations the user may try, start with the right colour)
• the second CR is preceded by a superfluous ";" (putting it into an otherwise empty node)

The improved SGF would be

``` (;GM[1]FF[4]SZ[19]
GN[White takes and wins.]
SO[http://senseis.xmp.net/?CountingProblem1/Solution]
AP[GoWiki:2009]
DT[2009-04-22]
PL[W]MN[1]
C[Turn on "All moves with number".]
```
``` AB[ga][ia][gb][hb][jb][gc][ic][gd]
AW[ja][ka][la][lb][hc][jc][kc][lc][hd][id][jd]
```
``` ;W[ib]
;B[]C[pass]
;W[kb]
```
``` CR[ia]
C[Diagram from http://senseis.xmp.net/?CountingProblem1/Solution]
C[]
C[White takes and wins.]
)
```

Correction: The end of my improved SGF would have to be a single comment, quote

Only one of each property is allowed per node, e.g. one cannot have two comments in one node.