var goban = new Goban({
drawer: new Goban.drawer({showCoords: true}),
geometry: Goban.geometry.square(19)
});
var tile = 'b';
goban.hoverPlaceAndFocus(
'ghost', function() {
return $('<img src="http://mokele.github.com/go-svg/Go_' + tile + '.svg" class="ghost"/>');
},
'stone', function() {
return $('<img src="http://mokele.github.com/go-svg/Go_' + tile + '.svg" class="stone"/>');
},
'focused', function() {
return $('<img src="http://mokele.github.com/go-svg/Go_placed' + tile + '.svg" class="focused"/>');
},
function(pointId) {
tile = tile=='b'?'w':'b';
}
);
$('#goban').append(goban.element);
-
Notifications
You must be signed in to change notification settings - Fork 0
Extensible javascript for Go board geographies/graphs. You can even draw round boards with https://github.com/mokele/roundgoban
mokele/goban.js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Extensible javascript for Go board geographies/graphs. You can even draw round boards with https://github.com/mokele/roundgoban
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published