Life 1.06: Difference between revisions
Jump to navigation
Jump to search
New page: The '''Life 1.06''' file format is an ASCII format is just a list of coordinates of alive cells. Life 1.06 was designed to be easy and quick for a Life program to read and write, with the ... |
No edit summary |
||
| Line 18: | Line 18: | ||
<code> | <code> | ||
#Life 1.06 | #Life 1.06 | ||
<br />0 0 | <br />0 -1 | ||
<br />1 0 | |||
<br />-1 1 | |||
<br />0 1 | <br />0 1 | ||
<br />1 | <br />1 1 | ||
</code> | </code> | ||
Revision as of 00:06, 5 January 2009
The Life 1.06 file format is an ASCII format is just a list of coordinates of alive cells. Life 1.06 was designed to be easy and quick for a Life program to read and write, with the drawback being that the file size is very large for large patterns.
Description of format
The first line is a header line, indicating that the file is in Life 1.06 format:
#Life 1.06
Each subsequent line is of the form
x y
where x and y are the x and y coordinates of an alive cell, respectively. Each alive cell must be on its own line, and the x and y coordinates are separated by a space.
Examples
The following is a glider in Life 1.06 format:
#Life 1.06
0 -1
1 0
-1 1
0 1
1 1
External Links
- Cellular automata file formats at Mirek's Cellebration
- RLE at the Life Lexicon