Skip to content

Commit

Permalink
Add example 7
Browse files Browse the repository at this point in the history
  • Loading branch information
be-next committed Dec 30, 2023
1 parent e223c00 commit 9f0c459
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/example_07/configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"num_states": 7,
"num_cells": 22,
"world_initialisation" : "0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0",
"rules_file_name": "examples/example_07/rules.json"
}
49 changes: 49 additions & 0 deletions examples/example_07/rules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "+1 suite",
"num_states": 7,
"rules": [
{"neighborhood": [7, 0, 0], "next_state": 0},
{"neighborhood": [1, 0, 0], "next_state": 2},
{"neighborhood": [1, 1, 2], "next_state": 3},
{"neighborhood": [1, 3, 2], "next_state": 4},
{"neighborhood": [3, 2, 0], "next_state": 5},
{"neighborhood": [4, 5, 0], "next_state": 2},
{"neighborhood": [5, 0, 0], "next_state": 4},
{"neighborhood": [1, 1, 4], "next_state": 3},
{"neighborhood": [1, 3, 4], "next_state": 4},
{"neighborhood": [3, 4, 2], "next_state": 3},
{"neighborhood": [4, 3, 2], "next_state": 4},
{"neighborhood": [3, 2, 4], "next_state": 5},
{"neighborhood": [3, 4, 4], "next_state": 3},
{"neighborhood": [4, 5, 4], "next_state": 2},
{"neighborhood": [5, 4, 0], "next_state": 3},
{"neighborhood": [2, 3, 0], "next_state": 4},
{"neighborhood": [3, 0, 0], "next_state": 4},
{"neighborhood": [4, 3, 4], "next_state": 4},
{"neighborhood": [5, 4, 4], "next_state": 3},
{"neighborhood": [2, 3, 4], "next_state": 4},
{"neighborhood": [3, 4, 0], "next_state": 3},
{"neighborhood": [4, 3, 0], "next_state": 4},
{"neighborhood": [0, 1, 4], "next_state": 3},
{"neighborhood": [0, 3, 4], "next_state": 4},
{"neighborhood": [0, 4, 3], "next_state": 6},
{"neighborhood": [0, 4, 4], "next_state": 6},
{"neighborhood": [0, 6, 4], "next_state": 1},
{"neighborhood": [1, 6, 4], "next_state": 1},
{"neighborhood": [1, 6, 2], "next_state": 1},
{"neighborhood": [6, 4, 3], "next_state": 6},
{"neighborhood": [6, 4, 5], "next_state": 6},
{"neighborhood": [6, 2, 3], "next_state": 0},
{"neighborhood": [6, 4, 4], "next_state": 6},
{"neighborhood": [6, 4, 0], "next_state": 6},
{"neighborhood": [1, 6, 0], "next_state": 1},
{"neighborhood": [6, 0, 0], "next_state": 1},
{"neighborhood": [0, 1, 2], "next_state": 3},
{"neighborhood": [0, 3, 2], "next_state": 4},
{"neighborhood": [0, 4, 2], "next_state": 6},
{"neighborhood": [0, 6, 2], "next_state": 1},
{"neighborhood": [6, 2, 4], "next_state": 0},
{"neighborhood": [0, 4, 0], "next_state": 6},
{"neighborhood": [0, 6, 0], "next_state": 1}
]
}

0 comments on commit 9f0c459

Please sign in to comment.