diff --git a/examples/example_06/configuration.json b/examples/example_06/configuration.json new file mode 100644 index 0000000..b0e7dd8 --- /dev/null +++ b/examples/example_06/configuration.json @@ -0,0 +1,6 @@ +{ + "num_states": 5, + "num_cells": 12, + "world_initialisation" : "0 0 1 1 1 1 1 1 1 1 0 0", + "rules_file_name": "examples/example_06/rules.json" +} \ No newline at end of file diff --git a/examples/example_06/rule.json b/examples/example_06/rule.json new file mode 100644 index 0000000..8fc746b --- /dev/null +++ b/examples/example_06/rule.json @@ -0,0 +1,26 @@ +{ + "name": "Divide by 2", + "num_states": 5, + "rules": [ + {"neighborhood": [5, 0, 0], "next_state": 0}, + {"neighborhood": [0, 1, 1], "next_state": 2}, + {"neighborhood": [2, 1, 1], "next_state": 2}, + {"neighborhood": [2, 2, 1], "next_state": 1}, + {"neighborhood": [2, 1, 0], "next_state": 3}, + {"neighborhood": [1, 2, 3], "next_state": 0}, + {"neighborhood": [1, 0, 3], "next_state": 3}, + {"neighborhood": [0, 3, 0], "next_state": 0}, + {"neighborhood": [0, 3, 3], "next_state": 0}, + {"neighborhood": [3, 0, 3], "next_state": 3}, + {"neighborhood": [0, 2, 3], "next_state": 4}, + {"neighborhood": [4, 3, 3], "next_state": 4}, + {"neighborhood": [4, 3, 0], "next_state": 0}, + {"neighborhood": [4, 4, 0], "next_state": 1}, + {"neighborhood": [4, 4, 1], "next_state": 1}, + {"neighborhood": [0, 4, 1], "next_state": 1}, + {"neighborhood": [0, 4, 0], "next_state": 1}, + {"neighborhood": [0, 1, 0], "next_state": 0}, + {"neighborhood": [2, 1, 3], "next_state": 3}, + {"neighborhood": [1, 3, 0], "next_state": 0} + ] +} \ No newline at end of file