glider - Send a glider (from J. H. Conway's Life) across a grid
glider glider --help glider --version
--display 4
This option specifies the grid display interval in number of steps.
The default is --display 0, which causes display only at the end.
--display 0
If this Boolean option is asserted, Game::Life::Fast is used for the calculaton. If not, Game::Life is used. The selected package must be installed on your system.
The default is --fast, but this can be negated with --nofast.
--fast
--nofast
This option displays the documentation for this script. The script then exits.
--size 10000
This option specifies the size of the grid.
The default is --size 1000.
--size 1000
--steps 42
This option specifies the number of steps to run.
The default is $size * 4 - 20.
$size * 4 - 20
If this Boolean option is asserted, the elapsed time is displayed. This elapsed time includes only processing, but may be less accurate if --display is asserted.
This option displays the version of this script. The script then exits.
This Perl script executes a pre-programmed configuration of John Horton Conway's game of Life. It starts a glider (that is,
X X XXX
) in the top left corner of a grid of specified size and sends it across the grid. The real purpose is to enable informal timing versus other implementations.
Thomas R. Wyant, III wyant at cpan dot org
Copyright (C) 2020-2022 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
To install Game::Life::Faster, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Game::Life::Faster
CPAN shell
perl -MCPAN -e shell install Game::Life::Faster
For more information on module installation, please visit the detailed CPAN module installation guide.