Lispbuilder-sdl implementaion of Brian Silverman's Wireworld cellular automaton
Common Lisp
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
package.lisp
screenshot.png
w1.ww
wireworld.asd
wireworld.lisp

README.md

Brian Silverman's Wireworld

https://en.wikipedia.org/wiki/Wireworld

Usage

  • SPACE toggles pause.

  • = - zoom in

  • - - zoom out

  • 0 - reset cell size

  • s - the simulation is advanced one step

  • left mouse click - inserts the current element on the grid (current element is written in the upper-left corner of the window

When the simulation is paused, there are other commands available:

  • c - sets current element to conductor

  • h - sets current element to electron-head

  • t - sets current element to electron-tail

  • e - sets current element to empty

Loading initial setup

main function can be changed to load an initial setup. This has to be provided as a text file, using the following encoding:

  • .: empty
  • C: conductor
  • H: electron-head
  • T: election-tail

See w1.ww for an example.