Wireworld/Smalltalk: Difference between revisions

no edit summary
(This is code I (Johnny Morrice) wrote myself. It's licensed under the GPLv3, which would make its use in GNU Free Documentation acceptable.)
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1:
This is a flexible implementation of [[implementation of task::Wireworld]]. It was also my first Smalltalk program, which may explain why it is so large.
 
This code is part of [http://github.com/elginer/jwgif jwgif]. jwgif actually produces animated gifs of wireworld simulations. Hence, here is an animated GIF of the example, presented in the task description for [[task::Wireworld]]:
 
[[Image:3cycle.gif]]
Line 7:
{{works with|gst|3.2.1}}
 
<langsyntaxhighlight lang="smalltalk">
Object subclass: #Conductor.
 
Line 293:
]
]
FileStream fileIn: 'wireworld.st'.
 
Object subclass: #TextRenderer.
Line 332 ⟶ 331:
] ifFalse: [
'Usage: gst rosetta.st -a FILENAME GENERATIONS' displayNl.
]</langsyntaxhighlight>