Creating new explorations
To create a new 2 dimensional exploration, first start by creating
a pattern file with the initial pattern for your exploration. A sample
pattern file is here.
The format of the file is a simple 2D matrix with 0,0 at the top left of the text file.
The '*' character is for on bits, the '.' character is for off bits
After initializing the causal ligature and the information space, send
the information space object the loadPatternFile: followed by the
linkGenerations: message, to run the exploration. Once this completes, you are
ready to run the visualizer on the log file. Example code:
|gameOfLife infoSpace visObj TeaPot |
gameOfLife := GameOfLife new.
infoSpace := InformationSpace new.
infoSpace initLogFile:'C:\r-pentomino.out'.
infoSpace init3DWithXdepth: 75
yDepth: 75
zDepth: 1.
infoSpace setCausality:gameOfLife.
infoSpace loadPatternFile:'C:\r_pentomino.txt'.
infoSpace linkGenerations:50.
"Run the Croquet visualizer on the data file, note this requires Open Croquet"
TeaPot := VisualizeWhirledTea initialize.
TeaPot openInWorld.
TeaPot loadLogFile:'C:\r_pentomino.out' fromGen:1 toGen:50.
"For an interesting visual affect, (If you have the 0.4.1 or later release), try:"
visObj loadLogFile:'C:\r-pentonimo.out' fromGen:1 toGen:50 randomBitColors: true
"Run the older Balloon 3D visualizer on the data file"
visObj := InformationSpaceVisualization new.
visObj initialize.
visObj loadLogFile:'C:\r-pentonimo.out' fromGen:1 toGen:10
|