Chess-960

 view release on metacpan or  search on metacpan

lib/Chess/960.pm  view on Meta::CPAN

#pod =method new
#pod
#pod The constructor for Chess::960 does not, at present, take any argument.  In the
#pod future, it may take arguments to pick different mappings between positions
#pod and numbers.
#pod
#pod =cut

sub new {
  my ($class) = @_;
  bless {} => $class;
}

#pod =method generate_position
#pod
#pod   my $pos = $c960->generate_position($num);
#pod
#pod This returns a starting description, described by a hash.  If C<$num> is not
#pod provided, a random position will be returned.  If a value for C<$num> that
#pod isn't an integer between 0 and 959 is provided, an exception will be raised.
#pod

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.087 second using v1.00-cache-2.02-grep-82fe00e-cpan-3b7f77b76a6c )