Commit 72840110 by Thomas Ponweiser

parent f7d6131c
 ... @@ -12,14 +12,14 @@ Simulations of [cellular automata](https://en.wikipedia.org/wiki/Cellular_automa ... @@ -12,14 +12,14 @@ Simulations of [cellular automata](https://en.wikipedia.org/wiki/Cellular_automa The cells in Wireworld have exactly one of the following four states: The cells in Wireworld have exactly one of the following four states: * *Electron head*, in this example encoded as `'@'` * *Electron head* * *Electron tail*, encoded as `'~'` * *Electron tail* * *Wire*, encoded as `'#'` * *Wire* * *Empty*, encoded by any other character than `'@'`, `'~'` or `'#'` (most often a blank character, `' '`). * *Empty* The state transitions are given by: The state transitions are given by: * *Electron head* always becomes an *Electron tail* * *Electron head* always becomes *Electron tail* * *Electron tail* always becomes *Wire*. * *Electron tail* always becomes *Wire*. * *Wire* becomes *Electron head*, if the number of *Electron heads* in the 8 neighboring cells is 1 or 2, otherwise it stays *Wire*. * *Wire* becomes *Electron head*, if the number of *Electron heads* in the 8 neighboring cells is 1 or 2, otherwise it stays *Wire*. * An *Empty* cell is always left unchanged. * An *Empty* cell is always left unchanged. ... @@ -52,7 +52,9 @@ An example input file (`diodes.wi`) containing 10x7 cells is given below (here, ... @@ -52,7 +52,9 @@ An example input file (`diodes.wi`) containing 10x7 cells is given below (here, ....##.... ....##.... ``` ``` *Implementation detail:* The number of cells in the effectively simulated automaton is *H* times (*W*+1), i.e. the terminating line feed character is interperted as extra *Empty* cell. It is important that the input file follows the **Unix convention for line endings**. #### Implementation detail The number of cells in the effectively simulated automaton is *H* times (*W* +1), i.e. the terminating line feed character is interperted as extra *Empty* cell. It is important that the input file follows the **Unix convention for line endings**. ## Release Date ## Release Date ... @@ -64,8 +66,8 @@ An example input file (`diodes.wi`) containing 10x7 cells is given below (here, ... @@ -64,8 +66,8 @@ An example input file (`diodes.wi`) containing 10x7 cells is given below (here, ## Contributors ## Contributors * Thomas Steinreiter - [thomas.steinreiter@risc-software.at](mailto:thomas.steinreiter@risc-software.at) * Thomas Steinreiter - [thomas.steinreiter@risc-software.at](mailto:thomas.steinreiter@risc-software.at) (C++14 version) * Thomas Ponweiser - [thomas.ponweiser@risc-software.at](mailto:thomas.ponweiser@risc-software.at) * Thomas Ponweiser - [thomas.ponweiser@risc-software.at](mailto:thomas.ponweiser@risc-software.at) (C version) ## Copyright ## Copyright ... ...
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!