Documentation for /Users/balarsen/Documents/idl/larsen/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

./

life.pro

Routines

result = life_nei(data, x, y [, DEBUG=DEBUG])

calculate the number of "live" neighbors a cell has

life_board, data, size

display the board for Conways game of life

life, size, DEBUG=DEBUG

display Conway's Game of life

Routine details

toplife_nei

result = life_nei(data, x, y [, DEBUG=DEBUG])

calculate the number of "live" neighbors a cell has

none

none

specific to life.pro

Return value

nei: number of "live" neighbors the cell has

Parameters

data in required

the data array to check for neighbors

x in required

the x coordinate of the cell to ckeck

y in required

the y coordinate of the cell to ckeck

Keywords

DEBUG in optional

print additional info to the terminal

Examples

i=2 j=5 nei = life_nei(board, i, j)

Author information

History:

Sun Mar 28 09:10:22 2004 Written and tested

Statistics

Lines: 21
McCabe complexity:

toplife_board

data I/O

life_board, data, size

display the board for Conways game of life

none

none

part of life.pro only works here

Parameters

data in required

the data file to display (1 live, 0 dead)

size in required

the size of the data file

Examples

life_board, data, 10

Author information

History:

Sun Mar 28 09:17:05 2004, written and tested

Statistics

Lines: 16
McCabe complexity:

toplife

life, size, DEBUG=DEBUG

display Conway's Game of life

none

none

Parameters

size in required

the size of the game to start, this will greate the game in an array that is [size,size]

Keywords

DEBUG

Examples

life, 10

Author information

History:

Sun Mar 28 09:13:02 2004, written and tested (commented as well)

Statistics

Lines: 66
McCabe complexity:

File attributes

Modifcation date: Tue Sep 9 14:19:37 2008
Lines: 267