Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Games::Backgammon 0.13

    Download button

    No screenshots available
    Downloads: 332  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Janek Schleicher | More programs
    Perl Artistic License / FREE
    April 28th, 2009, 18:52 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    backgammon game | backgammon modelling | Perl module | Perl | backgammon | modelling

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM