Generate Diagram From SGF
You can create diagrams for use within Sensei's Library by using this tool. It is also linked from the edit page (below the text area).
Note: beta stadium - be gentle :o)
- only supports 19x19 games
- No variations supported
- Converting Diagrams to SGF
- SGF2print : A useful tool to create instant printable diagrams of your SGF files or LittleGolem move sequences. Works for all board sizes, handicap stones and pre-setup boards. Displays most game information as well.
- HowDiagramsWork contains links to several tools that can create ASCII diagrams in SL format.
Sebastian: AB and AW are important. But variations? How would you support them anyway - the diagrams don't, or do they?
Arno: AB,AW,AE now supported.
Sebastian: Thank you very much for implementing it so quickly. It works well, and I like the way it increments the number automatically. I would say that it is beyond its beta stadium.
I must admit I haven't tested it until just now. Mostly, because I didn't have a game situation that I wanted to discuss, but also because it of the following (sorry that I come up with more wishes):
- Currently, it is tedious to convert a long sequence or even a whole game into a diagram. It seems to me that the easiest way to allow this would be by allowing a wider number range. This would also mitigate the problem of converting it back. However, since you have good arguments against this, it would also be great if the tool could produce a chain of diagrams.
- Generation of subareas of boards (maybe you could use VW for this).
grolich: Bug: while the script currently correctly recognizes when the "start move" is larger than number of moves in the game and draws the last diagram... it only says it does! all stones played in variations are displayed alongside main line stones. This happens often when converting a few sgfs in a row (or when you just want the end position...).
MK Great! We have just implemented Arno's script for drawing diagrams on InternetGoAcademy webpage, so this function will greatly facilitate managing diagrams there too. Would it be possible to have result in editable window, so that one could put letters or marks in the diagram? Also, is ko supported?
iff Would it be possible to get the source of this script? (I sometimes would like to prepare pages offline)
How about automatically generating SGF from diagrams (when possible) and making each diagram a hyperlink to the corresponding SGF? Then I could simply click on one of those problem diagrams and up pops my SGF editor and I can explore the variations.
Dave: SL already does that. Try clicking on any diagram. You will get an *.sgf file with a random name.
aLegendWai: Is it possible to upload a sgf file to the website? SGF file is very small (can be less than 1KB), but it contains more functions and things that a diagram cannot disaply (eg variation, comments on each node, clearer illustrations). It would be much grateful if it is possible in future.
Robert Pauli: Look at this example tree:
0 / | \ / | \ 1 1a 1b / /\ \ / / \ \ 2 1a1 1a1a 1b1 / / \ \ / / \ \ 3 1a2 1a1a1 1b2
Currently only positions in the left (main) branch can be chosen by filling start with a number:
- 0 denotes the empty board
- 1 the position after move 1
- 2 the position after move 2
. . .
- N the position after move N
. . .
but we can generalize this by inserting letters:
- Xb denotes the position reached by
- going to X,
- undoing its last move,
- and doing the undone move's second (b) variation
. . .
Note that adding up the number parts still gives the move's number.
To make sense, this would have to be coupled with a show variations option that adds the alternatives of the last numbered move as letters a, b, . . . to the position.
Since SGF isn't that complicated -- the example tree, for instance, would be
((1 2 3) (1a (1a1 1a2) (1a1a 1a1a1)) (1b 1b1 1b2))
-- this might be feasible.