Game-Life-Infinite-Board
view release on metacpan or search on metacpan
lib/Game/Life/Infinite/Board.pm view on Meta::CPAN
=head2 C<setRules>
C<< $board->setRules($rules); >>
Change the rules on an existing board.
=head2 C<updateCell>
C<< $board->updateCell($x,$y,$state); >>
Set the state of the cell with coordinates $x,$y to $state, where $state can be 0 (dead) or 1..4 (alive). Standard rules board (not colored) can only use 1 for alive cell. Immigration board can only use 1 or 2.
=head2 C<loadInit>
C<< $board->loadInit($filename) >>
Detects file format and loads a formation from a text file. Uses the function L</&format_is> to detect the file format and if a known format is successfully detected, uses the corresponding method (see below) to load the file. For now (0.06) only .ce...
=head2 C<loadCells>
C<< $board->loadCells($file_array_ref) >>
( run in 2.603 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )