Wireworld simulator and editor

Summer 2016, work in progress

Project repository

Current status

Simulator and editor commands

  • 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

Project log

Alternative grid representation

Using a single array to implement a large grid of cell is probably suboptimal, as the grid could be sparse. Therefore, I think I'm going to complicate the data structure a little, using a list of arrays, representing isolated regions of the grid.

wireworld-alternative-representation.png

Author: Stefano Rodighiero

Created: 2017-01-29 dom 11:47

Validate