Games-Backgammon

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

WriteMakefile(
    'NAME'		=> 'Games::Backgammon',
    'VERSION_FROM'	=> 'Backgammon.pm', # finds $VERSION
    'PREREQ_PM'		=> {
        List::Util        => 1.07,
        Inline            => 0.44,
        Carp              => 0,
        Data::Dumper      => 0,

        Test::More        => 0,
        Test::Differences => 0.45,
        Test::Exception   => 0.12,
        Test::Warn        => 0.05,
        Set::Scalar       => 0,
    }, # e.g., Module::Name => 1.1
    ($] >= 5.005 ?    ## Add these new keywords supported since 5.005
      (ABSTRACT_FROM => 'Backgammon.pm', # retrieve abstract from module
       AUTHOR     => 'Janek Schleicher <bigj@kamelfreund.de>') : ()),
);
__END__
print "Sorry, I have to compile the gnubg program, that can need some time :-(\n";

README  view on Meta::CPAN

This module requires these other modules and libraries:

   Inline            0.44,
   List::Util        1.07,
   Carp              
   Data::Dumper      

For testing also

   Test::More        
   Test::Differences 
   Test::Exception   
   Test::Warn
   Set::Scalar

   
CHANGES ON gnubg

Some parts of 
gnubg 0.13.0 is bundled with this package.
You find some copied and pasted stuff from it in the *.xc files.

t/set_position.t  view on Meta::CPAN

#!/usr/bin/perl

use strict;
use warnings;

use Games::Backgammon;

use Test::More tests => 181;
use Test::Differences;
use Test::Exception;

use Data::Dumper;

use constant IDEAL_40 => {3 => 1, 4 => 1, 5 => 3, 6 => 3};
use constant IDEAL_79 => {4 => 3, 5 => 5, 6 => 7};

use constant TWENTY_CHECKERS => {
    whitepoints => {1 => 1, 2 => 19},
    blackpoints => {6 => 1},



( run in 1.791 second using v1.01-cache-2.11-cpan-39bf76dae61 )