Jump to content

[Discuss] Game of Life


Recommended Posts

index.php?app=downloads&module=display&section=screenshot&id=10

File Name: Game of Life

File Submitter: LAVA 1.0 Content

File Submitted: 02 Jul 2009

File Updated: 02 Jul 2009

File Category: General

LabVIEW Version: 7.1

File Version: 1.1.1

License Type: Creative Commons Attribution-Share Alike 3.0

Potentially make this file available on the VI Package Network?: Undecided

Author:

Eric Olson

--see readme file for email address

Description:

Conway's Game of Life is a fun little simulation of a group of cells. How new cells are born and how old cells die is decided by a simple set of rules, but can lead to complicated behavior by the entire colony. I've always found this simulation to be interesting and I thought coding it in LabVIEW would be a fun exercise. Comments and critiques of either the game or of my coding style are always welcome.

The basic rules are simple:

1. A cell that has one or zero neighbors dies of lonliness.

2. A cell that has four or more neighbors dies of overcrowding.

3. An empty cell that has exactly three neighbors containes a new cell in the following generation.

A thorough explanation of the Game can be found at http://web.archive.o...7s_game_of_life .

Dependancies:

This uses the OpenG time, file, and variantconfig libraries. They are not included.

Download them via the OpenG Package Manager: http://web.archive.o...p?showtopic=233

Change Log:

1.0.0: Initial release of the code.

1.0.1: Include readme.txt in the zip file.

1.1.0: Added Open and Save As functions (in the menubar). Added an About dialog. Removed the Exit button (redundant to Close).

1.1.1: Forgot to include the .rtm file in the distribution. Rows/columns now update when opening a .gol file.

Click here to download this file

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.