BesoGo: yet another web-based SGF editor

Thank you! I’m always so happy to hear about a happy user!

That’s a neat idea. I was even thinking about doing something like that, but I forgot to. I’d have to figure out how to do that, but I think it’s straightforward.

Unselecting the tools puts the editor into navigate-only mode, which is a read-only mode to avoid editing the move tree by accident. The ability to do this was intentional, but maybe it makes sense to still leave the cut button working, if that’s a use case that you want. The cut button does anyways pop up a confirmation.

It automatically gives the first move depending on the balance of White vs Black stones. However, to set a move of the opposite color as first, you can select one of the “Set Black” or “Set White” buttons and then ctrl+click (sorry, no work-around for touch-only interfaces) to make a move with that color (instead of placing a “set stone”). Then, subsequent moves (with the auto “ying-yang” tool) with follow the alternating color order from there.

Ideally, the editor should also obey and offer a way to set the “next to move” property that is part of the SGF standard, but that is currently unsupported.

In principle, I guess it could be possible to edit the set stones, while there are child branches, but that could lead to some odd and unexpected behavior, since one might inadvertently set a stone in a location where a subsequent move will later overlap (before there is capture to empty that point). Hence, my editor forces a node to have no children before allowing one to edit it with set stones, but the current behavior will just create a new child and edit that one.

The funny thing is that the SGF standard explicitly allows moves to overlap on top of existing stones. My editor blocks entering such moves by default, but will allow it if you click while holding down the “Ctrl” key. Some other SGF editors might give an unrecoverable error message when dealing with such a (technically valid) SGF.

1 Like

BesoGo now has a one-box preview, when linking to the online editor

Also, check out adding the above link to your home screen via your mobile browser. You can launch the SGF editor like an app.

5 Likes

This looks neat, and very easy to use!

Am I right in thinking that it only shows full boards at the moment? (Although you can vary the board size.) If I wanted to modify the code to show just a quarter of the board, maybe for a tsumego problem or a joseki diagram, is it just a matter of editing the drawing functions in boardDisplay.js, or is it more complicated than that?

3 Likes

Yes, currently BesoGo only natively supports displaying the full board. However, if you want to crop the board display, I think the easiest way would be to modify the boardDisplay.js file (as you already suggested). Specifically, see line 111, which sets the viewBox property of the SVG element to control which portion is displayed, and related calculations on lines 104-106.

Actually, in the related project Josekle (see Josekle 🟢⚪🟣🟢🟣), modifying the viewBox is used to adjust the zoom (crop). This is done in lines 531-538 of this file.

2 Likes

Thanks, that should save me a bit of time! I’ll have a play with it on the weekend.

At this stage, I don’t know whether I’ll put up anything public-facing using BesoGo. I’m just playing with options for having a go study notebook on my computer, rather than scraps of paper scattered around the house. SGF+variations doesn’t quite do it, because it’s hard to cross-reference different positions: I want something with hyperlinks!

1 Like

OGS puzzle collection :stuck_out_tongue:

Except setting up full board positions or copying and pasting positions between puzzles might be time consuming

1 Like