To try, just download the goboard.js file and include it in a
script tag on your webpage. You can then call the
goboard.draw(element_id, stones, playing, last_x, last_y) attributes explained:
element_id- DOM element ID of the canvas element where the Go board will be drawn
playing(optional) - should be an integer: 1 - black, 2 - white which indicates the current player's color and that it is her turn to move.
last_move_x(optional) - indicates the board X coordinate of the last move, must be an integer between 0 and 18 (left to right)
last_move_y(optional) - indicates the board Y coordinate of the last move, must be an integer between 0 and 18 (top to bottom)
You can also try downloading the example.html file which will show the example screenshot below.
Copyright © 2013 Ionuț Arțăriși
Distributed under the Eclipse Public License, the same as Clojure.