Out of personal interest I decided to make a Go SGF viewer.
Just under a week’s worth of work, I got the basic functionalities nailed.
Currently I still have the native packaging to sort out, so unfortunately the executable so far is a .jar file. If you’d like to give it a try, you can download the file here:
Drag and drop .sgf files to load them.
Mouse scroll wheel (or left/right keys) to navigate moves along the current branch
Right click on the goban to jump back to parent variation
Hold shift and click on a grid will jump ‘that’ move being played (if played at all)
You’ll need Java 1.8 to run this. I’d love to hear your feedback!
Edit: Just like to emphasise that this is not done
one thing i noticed is that though usually the grid is numbered 1 - 19 from bottom to top, you chose to number it top to bottom. that can lead to confusion for example when watching a commented review.
Sounds good. In that case you may should consider more functionalities, like a good printing output (which is a main point in publishing, you can check what drago does on that) and other things…
Mostly for the possibility of confusing I (uppercase i) with l (lowercase L), AFAIK, and probably also for the possibility of confusing I/l with 1 in some handwriting or fonts.
Looking awesome! I did something similar https://github.com/toomasr/sgf4j-gui but I’m not much of a JavaFX buff. If I ever add/change anything in my project I just might check out how you got everything so nice looking.
You might want to check out my SGF parser, maybe can make your life a bit easier unless you have it already under control. See https://github.com/toomasr/sgf4j
@toomasr
I was chuckling as I read over the source code, the SGF parser logic is about the exact same as how I implemented it, though yours is much more polished, I should say.
Have you tested it under OpenJDK? It failed here, and I’m not sure that’s the reason. I tried installing Oracle Java but that too didn’t work too, I might try again later.
It seems you’re not giving proper attribution to the artwork. There’s no thing as “the Creative Commons license”. You always have to specify which CC license it is. And even for the other non-CC items, it’s always nice to spell out where exactly they’re coming from and what are the conditions for using them, even if the author doesn’t demand it - this way it’ll be easier for to tell if you’re respecting copyright or not.
@BozoDel
Looks like you found my little note of the icon licenses. I had plans to make a proper about screen where all the license info and attributions can be found and that file was supposed to be a rough note. Though it’s not really an excuse for the poorly written records.
No I haven’t tested it under OpenJDK. I should do that as well.