Gtk2::GoBoard

High quality goban widget with sound
Download

Gtk2::GoBoard Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Marc Lehmann
  • Publisher web site:
  • http://www.goof.com/pcg/marc/

Gtk2::GoBoard Tags


Gtk2::GoBoard Description

High quality goban widget with sound Gtk2::GoBoard is a high quality goban widget with sound.SYNOPSIS use Games::Go::SimpleBoard; my $goboard = newe Games::Go::SimpleBoard; use Gtk2::GoBoard; my $gtkboard = new Gtk2::GoBoard size => 19; # update board, makes a copy $gtkboard->set_board ($goboard); # advanced: enable stone curser for black player, showing # only valid moves $gtkboard->set (cursor => sub { my ($mark, $x, $y) = @_; $mark |= MARK_GRAYED | MARK_B if $goboard->is_valid_move (COLOUR_WHITE, $x, $y, $ruleset == RULESET_NEW_ZEALAND); $mark }); # button-release and -press events pass board coordinates $gtkboard->signal_connect (button_release => sub { my ($button, $x, $y) = @_; ... });This is the very first "true" Gtk2 widget written in Perl.The Gtk2::GoBoard class works like any other widget, see the SYNOPSIS for short examples of the available methods, and the App::IGS and KGS modules for usage examples. Requirements: · Perl


Gtk2::GoBoard Related Software