ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Games-Sokoban/Sokoban.pm
(Generate patch)

Comparing Games-Sokoban/Sokoban.pm (file contents):
Revision 1.1 by root, Tue May 11 23:17:47 2010 UTC vs.
Revision 1.4 by root, Tue May 11 23:32:15 2010 UTC

8 8
9=head1 DESCRIPTION 9=head1 DESCRIPTION
10 10
11I needed something like this quickly - if you need better docs, you have to ask. 11I needed something like this quickly - if you need better docs, you have to ask.
12 12
13Supports xsb (text), rle, sokevo and a small "binpack" format for input and 13Supports xsb (text), rle, sokevo and a small "binpack" format for input
14output. 14and output and can normalise levels as well as calculate unique IDs.
15 15
16=over 4 16=over 4
17 17
18=cut 18=cut
19 19
22use common::sense; 22use common::sense;
23 23
24use Carp (); 24use Carp ();
25use List::Util (); 25use List::Util ();
26 26
27our $VERSION = '0.01'; 27our $VERSION = '0.02';
28 28
29=item $level = new Games::Sokoban [format => "text|binpack"], [data => "###..."] 29=item $level = new Games::Sokoban [format => "text|rle|binpack"], [data => "###..."]
30 30
31=cut 31=cut
32 32
33sub new { 33sub new {
34 my ($class, %arg) = @_; 34 my ($class, %arg) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines