1/8/2024 0 Comments Conway game of life demoThe file format is a simple one-column csv file containing the generation number (initially 1) and a series of 1s and 0s to represent each cell in the field. To change the starting configuration just attach the desired node to the switch (comments included in network). The network includes some built-in starter patterns including a random cell generator and an option to import saved life patterns produced by the engine. In order to work correctly, the "Game of Life" folder must be placed on your desktop (see UPDATED version in next comment to remove this restriction). I also include another NodeBox network that turns any text string into a life pattern that can then be feed into the Conway.ndbx engine. I am attaching a zipped folder containing the NodeBox network and some supporting files and examples. It's a bit of a kludge, but this technique opens many new possibilities. By successively writing and reading (via a standard csv node), I can introduce a tiny bit of "state" into NodeBox's otherwise stateless world. The trick that makes this possible is a very simple python node called write_csv that writes a list to a text file. NodeBox renders a stateless, deterministic output and has no way of modeling the open-ended growth needed to produce fractals, L-systems, space-filling curves, cellular automata, simulations, mazes, Conway's Game of Life, etc. Veteran NodeBoxers should be surprised to see this. If you are not familiar with the game of life, see UPDATE: New version attached in reply to this comment.Īttached is a proof of concept NodeBox network that generates an open-ended number of life patterns based on Conway's Game of Life.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |