Main > Programming > Libraries >

Game::Life 0.04

Game::Life 0.04

Sponsored Links

Game::Life 0.04 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.006 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 988
Date added: 2007-02-16
Publisher: Michael K. Neylon

Game::Life 0.04 description

Game::Life - Plays Conways Game of Life.

SYNOPSIS

use Game::Life;
my $game = new Game::Life( 20 );
my $starting = [
[ 1, 1, 1 ],
[ 1, 0, 0 ],
[ 0, 1, 0 ]
];

$game->place_points( 10, 10, $starting );
for (1..20) {
my $grid = $game->get_grid();
foreach ( @$grid ) {
print map { $_ ? X : . } @$_;
print "n";
}
print "nn";
$game->process();
}

Conways 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.

The edges of the board are currently set as "flat"; cells on the edge do not have any neighbors, and thus will fall off the board. Future versions may allow for warp edges (if a cell moves off the left side it reappears on the right side).

Game::Life 0.04 Screenshot

Advertisements

Game::Life 0.04 Keywords

Bookmark Game::Life 0.04

Hyperlink code:
Link for forum:

Game::Life 0.04 Copyright

WareSeeker periodically updates pricing and software information of Game::Life 0.04 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Game::Life 0.04 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
wmlife is a life and death dockapp. Free Download
Web of Life is a life simulation game. Free Download
mediadbs is a digital media database system. Free Download
JSlife project is a Javascript/DHTML implementation of Conways classic game of life. Free Download
JGachine project is a Java game machine/engine/browser. Free Download
Locale::Memories is a Perl module for L10N Message Retrieval. Free Download
Preppi is a simple graphical EPP client for Unix and Linux systems. Free Download
GLightOff is a simple (but not so easy to solve!) puzzle game. Free Download