Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > c1538c167d8540661aace13ab3018544

perl-Game-Life-0.40.0-1.mga2.src.rpm

Description:

Conway's Game of Life is a basic example of finding 'living' patterns in
rather basic rulesets (see *NOTES*). The Game of Life takes place on a 2-D
rectangular grid, with each grid point being either alive or dead. If a
living grid point has 2 or 3 neighbors within the surrounding 8 points, the
point will remain alive in the next generation; any fewer or more will kill
it. A dead grid point will become alive if there are exactly 3 living
neighbors to it. With these simple rules, fascinating structures such as
gliders that move across the grid, glider guns that generate these gliders,
XOR gates, and others have been found.

This module simply provides a way to simulate the Game of Life in Perl.

In terms of coordinate systems as used in 'place_points', 'toggle_point'
and other functions, the first coodinate is the vertical direction, 0 being
the top of the board, and the second is the horizontal direaction, 0 being
the left side of the board. Thus, toggling the point of (3,2) will switch
the state of the point in the 4th row and 3rd column.

Generated packages:

Other version of this rpm: