From: Rob Ing on
Hi,

I am making a game of life. I want to be able to load the .lif files in to my program but i am struggling to find any information on how to do it.

The game of life is a simulation of cells dying and living. Depending on the amount of cells that is alive around it depends on whether it is alive or dead. To start off the simulation, different patterns can be loaded in to the matlab program. There are people that have created a lot of patterns and saved them with a file extension of lif. I want to be able to load these patterns in to my game of life program.


Can anyone give me a link that explains it or just explain it to me please?

Any help will be greatly appreciated.

Rob
From: Steven Lord on

"Rob Ing" <ringham3(a)hotmail.com> wrote in message
news:ho2n1j$hbc$1(a)fred.mathworks.com...
> Hi,
>
> I am making a game of life. I want to be able to load the .lif files in to
> my program but i am struggling to find any information on how to do it.

Looking at this page, it appears there are two places where the format of
this type of file may be listed:

http://filext.com/file-extension/lif

You will need to write the function to read in the file using this format
yourself. You can make use of the low-level file I/O functions to do so;
see HELP IOFUN.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ