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 30.138.528 Times

Game::Life 0.04

  Date Added: October 18, 2010  |  Visits: 1.086

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
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...
 
Games  -  Baby Dinosaur - Super Cool Game For Your Children With Popular Rhymes & Songs! 2.0
Baby Dino is a fun play game with lots of little activity for babies! In this game, kids explore shapes, colors, music and alphabets! Cool animations and sing-along nursery rhymes guarantees hours of fun for your little one! Some of...
21.4 MB  
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  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.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...
2.73 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