Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.242.840 Times

Game::Life 0.04

  Date Added: October 18, 2010  |  Visits: 1.460

Game::Life

Report Broken Link
Printer Friendly Version


Product Homepage
Download (110 downloads)



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

Requirements: No special requirements
Platforms: Linux
Keyword: Conways Conways Game Game Game Of Life Gamelife Grid Libraries Plays Conways Game Point Programming
Users rating: 0/10

License: Freeware Size: 6.14 KB
USER REVIEWS
More Reviews or Write Review


GAME::LIFE RELATED
Screen Savers  -  Gaia Game of Life Screensaver 1.01
Gaia Game of Life Screensaver is a screensaver based on the popular Conway's Game of Life. Unlike the original game where the cells are all in the same group, this screensaver features animations with two groups of cell competing against each...
4.39 MB  
Simulation Games  -  Web of Life 1.0
Web of Life is a life simulation game. An isometric game done with C++ and SDL. In this game you control some beings in an ecosystem, the goal is to make only that the beings you control survive. Your beings should survive fighting with...
 
Home & Leisure  -  Wheel Of Life Lite 1.6.4889.39887
The program helps you to easily find out your life balance by assessing the main areas of a human's life: business and career, finances, health, relationships with family and friends, love relationships, personal development, entertainment and...
3.33 MB  
Home & Leisure  -  Wheel Of Life Lite Mac 1.3.1
The program helps you to easily find out your life balance by assessing the main areas of a human's life: business and career, finances, health, relationships with family and friends, love relationships, personal development, entertainment and...
1.05 MB  
Home & Leisure  -  The Wheel Of Life Lite 1.6.4575.40805
The program helps you to easily find out your life balance by assessing the main areas of a human's life: business and career, finances, health, relationships with family and friends, love relationships, personal development, entertainment and...
3.33 MB  
Modules  -  John Conway's Game of Life 6.x-1.0
This is an implementation of John Conway's Game of Life (see here: http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) for Drupal. This puts the Game of Life in a block for use in the sidebar, for example.Features: * Each page refresh generates...
10 KB  
Games  -  The Game of LIFE: Path to Success for Mac OS 1.0
Follow the path to success by playing this contemporary spin on the classic family favorite. Take care of the needs of everyone under your roof as you advance through life from college, to marriage, and beyond. Collect tokens at a fast and...
24.1 MB  
Simulation Games  -  Conway\'s Game of Life 0.4.1
A lightweight and fast implementation of Conway's Game of Life and related cellular automata.It includes a pattern viewer running X Windows anda Python module intended to help in designing complex patterns.
80.01 KB  
Games  -  The irRegularGame of Life 1.0.1
An unusual puzzle game based on Conway's famous "game of life". Be amazed by the fascinating grid patterns that evolve from 4 simple cell rules. Puzzle your way through 42 levels, use the Sandbox to load level solutions or share your own cool...
1003.52 KB  
Home & Leisure  -  Wheel Of Life for Mac OS 1.1
The program would help you not lose the taste for life while remaining productive. The basic concept of the program was taken from the wheel of life, which contains the most important areas of human's activities. The program enables you to monitor...
808.96 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB