Games::Backgammon

Perl extension for modelling backgammon games
Download

Games::Backgammon Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Janek Schleicher
  • Publisher web site:
  • http://search.cpan.org/~bigj/

Games::Backgammon Tags


Games::Backgammon Description

Perl extension for modelling backgammon games Games::Backgammon is a Perl module for modelling backgammon games.SYNOPSIS use Games::Backgammon; my $game = Games::Backgammon->new( position => { whitepoints => {3 => 1, 4 => 1, 5 => 3, 6 => 3}, # ideal 40 pip position blackpoints => {4 => 3, 5 => 5, 6 => 7}, # ideal 79 pip position atroll => 'black', } ); print "Position ID: ", $game->position_id; print "Checkers off from white", $game->whitepoints('off'); print "Now you can do these moves: ", join " ", $game->legal_moves(2,1);This module helps modelling backgammon games. It is not basically intented to play backgammon for itself. I just wrote it to analyze (long) racings in a convenient way.Most of the routines are just wrappers to the gnubg program of Gary Wong. Requirements: · Perl


Games::Backgammon Related Software