Html5 Go Board

For discussing go computing, software announcements, etc.
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: Html5 Go Board

Post by KOCMOHABT »

version 0.10.8 (webgoboard.com / Chrome / FF / WordPress)

Added score estimating result in SE-window.
Image

Fixed serveral bugs with session restore in the extensions (bug with focus and bug with Home-node)
Fixed bug with no sound.
Fixed bad links pointed to the site http://webgoboard.com
Added a new kifu-mode (a guess mode in other words):
Turn it on panel Image
U will see 2 new buttons Image
The right button is for turning this mode on/off. The left one is for showing kifu of the current variant. Here is an example how it looks like
Image
.
This mode is working only with the main variant of the game tree (u can reorder all variants so current variant will be the main by the hotkey Ctrl+Shift+M). This mode with kifu-window is something like game review for real board.

PS: Now I will focus on the development of a new KGS-client.
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: Html5 Go Board

Post by KOCMOHABT »

Cheers guys! More than 1000 users of WebGoBoard.
Image

:clap: :clap: :clap: :D :D
User avatar
Bonobo
Oza
Posts: 2223
Joined: Fri Dec 23, 2011 6:39 pm
Rank: OGS 9k
GD Posts: 0
OGS: trohde
Universal go server handle: trohde
Location: Germany
Has thanked: 8262 times
Been thanked: 924 times
Contact:

Re: Html5 Go Board

Post by Bonobo »

KOCMOHABT wrote:[..]

PS: Now I will focus on the development of a new KGS-client.

Looks interesting :-) Are you going to make an extra thread for GoUniverse? I’d recommend that …

<edit>

LOL, you already did that, just today :-D

</edit>

“The only difference between me and a madman is that I’m not mad.” — Salvador Dali ★ Play a slooooow correspondence game with me on OGS? :)
User avatar
ez4u
Oza
Posts: 2414
Joined: Wed Feb 23, 2011 10:15 pm
Rank: Jp 6 dan
GD Posts: 0
KGS: ez4u
Location: Tokyo, Japan
Has thanked: 2351 times
Been thanked: 1332 times

Re: Html5 Go Board

Post by ez4u »

I just encountered a bug in the generation of ascii diagrams. See the screenshot below, the diagram is generated incorrectly from the board position. The diagram incorrectly numbers the moves with 1 in the board position as 0, 2 as 1, 3 as 2, etc. and with the move indicator set to 0 in the upper left of the diagram ($$bcm2 should be $$Wcm1).
Diagram bug 2016-12-04_21-48-35.jpg
Diagram bug 2016-12-04_21-48-35.jpg (277.53 KiB) Viewed 19792 times
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: Html5 Go Board

Post by KOCMOHABT »

Version 0.10.9

Fixed bug with rendering the board and the stones on the lastest versions of Chrome.
The bug was looking like that Image

Also improved perfomance of the rendering.
jokkebk
Dies in gote
Posts: 44
Joined: Tue Feb 01, 2011 4:47 am
Rank: EGF 1 kyu
GD Posts: 0
KGS: finity
Has thanked: 2 times
Been thanked: 14 times

Re: Html5 Go Board

Post by jokkebk »

Very cool. Also very snappy, congrats. I made a HTML5 canvas Go Board a couple of years ago as well:

http://jgoboard.com/

It's mainly for use with JavaScript and I haven't done SGF editing or other functionalities, and knowing my current freetime it might be likely I never will. The graphics for jGoBoard are available for CC (non-commercial) license, if you're looking for additional textures. :)

Too bad that the HTML5 canvas implementation is somewhat buggy in Chrome, I've encountered several issues over the years where there's nothing wrong with the code, but it still shows artifacts.

Joonas
goPlayerJuggler
Beginner
Posts: 15
Joined: Thu Jul 03, 2014 2:20 pm
Rank: French 1 dan
GD Posts: 0
KGS: Malcolm
Location: France
Has thanked: 18 times
Been thanked: 2 times
Contact:

Feature request: API has an event: onGameTreeModified

Post by goPlayerJuggler »

Great work KOCMOHABT!

I've been using the firefox plugin for a few years now; it's been very handy.

Anyway I'm writing because I've hooked up your Go Board to some other code I've written for Toroidal Go. It's working pretty well. Here are some samples:
- a viewer
- a blog post

Next I would like to see about building on this so as to be able to play toroidal Go. And also edit games (variations, annotations, ...).

So I have a (fairly small) feature request (edited 2017-12-26): could CGoBoardApi be extended so as to expose an event called onGameTreeModified? The event would be raised after a modification is made to the game tree (new move/marked stone; but not for an updated comment) and after CGoBoardApi has finished its work related to that.

Here's my plan: when the onGameTreeModified event is raised, my code will get the updated SGF and then make changes so it "works" for toroidal Go. I think I need to add an inverse transformation function to my go-variants-transformer module, but I won't go into details here.

With just that, I think I should be able to build on your Go Board so it works as an editor for Toroidal Go too. It should be pretty nice! :)

Could you let me know what you think?

Thanks!

Best regards
Malcolm
goPlayerJuggler
Beginner
Posts: 15
Joined: Thu Jul 03, 2014 2:20 pm
Rank: French 1 dan
GD Posts: 0
KGS: Malcolm
Location: France
Has thanked: 18 times
Been thanked: 2 times
Contact:

second feature request: doNotCountLiberties

Post by goPlayerJuggler »

Second feature request: could a setting doNotCountLiberties be added? When doNotCountLiberties===true, then no stones would ever be removed by the go board after a move. Stones would only be removed when there are AE (add empty) nodes in the input SGF.

I think having this setting would help improve the integration my software for Toroidal Go.
Thanks

Edit (2018-01-16): Please disregard these requests and instead see the issue I created on github.
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: Html5 Go Board

Post by KOCMOHABT »

Version 0.10.11

Ctrl + Insert - a new hotkey for adding an empty node.

The main change is for the library itself, mostly the api-functions that Malcolm asked about.
lambic
Beginner
Posts: 7
Joined: Fri Jan 26, 2018 10:44 am
Rank: KGS 1k
GD Posts: 0
Has thanked: 1 time
Been thanked: 1 time

Re: Html5 Go Board

Post by lambic »

Hello, really a great program !

I have a few questions :
- How can I start the board with coordinates activated by default ?
- How can I start the board with a SGF file loaded by default ?
- Is it a way to localize the menus (other than modifying all the .js) ?
- Is it a way to cut and copy nodes and their tree branch like cgoban does ? (or maybe in the future)

Thank you.
Lambic
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: Html5 Go Board

Post by KOCMOHABT »

- How can I start the board with coordinates activated by default ?
- How can I start the board with a SGF file loaded by default ?
The Board is saving the last state. This means that when you close a tab with the board or the entire browser, the program will store the current state of the board including coordinates and sgf.

Perhaps this is not what you need, i can add an option for loading empty board/last board state/preloaded sgf and same option for coordinates.
- Is it a way to localize the menus (other than modifying all the .js) ?
You can try to use localization files from GoUniverse.
- Is it a way to cut and copy nodes and their tree branch like cgoban does ? (or maybe in the future)
You can simply delete any node, but not cut and copy. I'll take a look how cgoban perform this action.
lambic
Beginner
Posts: 7
Joined: Fri Jan 26, 2018 10:44 am
Rank: KGS 1k
GD Posts: 0
Has thanked: 1 time
Been thanked: 1 time

Re: Html5 Go Board

Post by lambic »

KOCMOHABT wrote:Perhaps this is not what you need, i can add an option for loading empty board/last board state/preloaded sgf and same option for coordinates.
I've been meddling with the code since I posted my questions.

So, for coordinates I played with the local storage :

Code: Select all

if (undefined !== window.localStorage) {
  localStorage.setItem("HTMLGoBoardRulers", "1");
}
I wanted to preload a SGF from a link on another page. So, I put the way to the SGF file as a substring in the URL, then used AJAX to load it in the go board.

Code: Select all

var SGF = encodeURI(window.location.search.substring(1));
  
if (SGF) {
  var xmlhttp = new XMLHttpRequest();
  xmlhttp.open("GET", SGF, true);
  xmlhttp.onreadystatechange = function() {
    if(xmlhttp.readyState==4) {
      GoBoardApi.Load_Sgf(oGameTree, xmlhttp.responseText);
    }
  }
xmlhttp.send(null);
}
KOCMOHABT wrote:You can try to use localization files from GoUniverse.
I didn't think about it. How do you load them ?
I'm afraid I changed everything directly in the code to have it in french :)
KOCMOHABT wrote:You can simply delete any node, but not cut and copy. I'll take a look how cgoban perform this action.
Cgoban can cut and paste. It's very useful when composing a SGF for a lecture.
Indeed, sometimes a node and all the branch behind are misplaced, you don't want to delete and compose them again elsewhere.
User avatar
Bonobo
Oza
Posts: 2223
Joined: Fri Dec 23, 2011 6:39 pm
Rank: OGS 9k
GD Posts: 0
OGS: trohde
Universal go server handle: trohde
Location: Germany
Has thanked: 8262 times
Been thanked: 924 times
Contact:

Re: Html5 Go Board

Post by Bonobo »

Hello KOCMOHABT, I’m a big fan of this plugin.

But now I switched back to Safari (on macOS) for several reasons, and I find I am missing your Web Go Board.

Would it be possible to load it as a script in, say, Tampermonkey? Or would you release it as a plugin?

I’d be willing to spend something on it, of course, as it is an awesome tool.
If sensibly/decently priced, I’d even accept a subscription model—and expect updates* in turn :) .

________________
* Like … I cannot currently import those GIF animations in Photoshop :-)
“The only difference between me and a madman is that I’m not mad.” — Salvador Dali ★ Play a slooooow correspondence game with me on OGS? :)
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: Html5 Go Board

Post by KOCMOHABT »

Hello, Bonobo.
Would it be possible to load it as a script in, say, Tampermonkey? Or would you release it as a plugin?
I'm not really familar with Tampermonkey, but if you need to use it just an sgf-editor, then you can simply use this link http://webgoboard.net/19.html
I cannot currently import those GIF animations in Photoshop
Is there any error message when you are trying to import GIF?
rhwocns
Dies in gote
Posts: 34
Joined: Wed Oct 28, 2020 11:51 pm
Rank: 3k in a local town
GD Posts: 0
Has thanked: 6 times
Been thanked: 5 times

Re: Html5 Go Board

Post by rhwocns »

KOCMOHABT wrote:Update: Added saving to gif format. Current size of browser windows will be used for image and current skin. Ctrl+I - save current variant.
Not current variant. start from the first move 1.
Plz fix it.
only save the current variant move start.
Last edited by rhwocns on Tue Apr 06, 2021 2:42 am, edited 2 times in total.
Post Reply