Skip to content

Extensible javascript for Go board geographies/graphs. You can even draw round boards with https://github.com/mokele/roundgoban

Notifications You must be signed in to change notification settings

mokele/goban.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);

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

No packages published