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

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

Serving Software Downloads in 976 Categories, Downloaded 32.405.616 Times

Game::Life 0.04

  Date Added: October 18, 2010  |  Visits: 1.143

Game::Life

Report Broken Link
Printer Friendly Version


Product Homepage
Download (78 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  -  Game of Life 2.0.2
Interesting version of the computer realization of mathematical game "Life" invented by British mathematician John Conway in 1970. This game is the best known example of cellular automaton. Venue of the game - "the universe" - is marked on the...
2.58 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  
Games  -  BikeTrumps 1.0.0.0
This game modern form of well known children's card trade game that we all used to play in our childhood.. :).The main trade object in this game is bike. NFC is required to play this game. It is very good game for kids who cant trade real bikes...
1024 KB  
Games  -  Monster Dots 1.0.0.2
Classic connect-the-dots game, but with a "Monster" Theme and a multi-player, turn-based strategy. -Connect the dots and place your chosen monster on the game field. -Dozens of monsters to choose from. -Hold multiple game sessions...
5 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  
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 3.15.3
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