From 92503ff5dc2b18294876fcb5f106bdd54c6b32dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Eug=C3=A8ne=20Pin?= <eugene.pin@etu.utc.fr>
Date: Tue, 8 Jun 2021 15:28:37 +0200
Subject: [PATCH] Add wireworld rule et des configurations

---
 configurations/Wireworld/AND-NOTgare.json |  9 +++++
 configurations/Wireworld/ANDgate.json     |  9 +++++
 configurations/Wireworld/ORgate.json      |  9 +++++
 configurations/Wireworld/XORgate.json     |  9 +++++
 configurations/Wireworld/diodes.json      |  9 +++++
 models/wireworld.json                     | 48 +++++++++++++++++++++++
 6 files changed, 93 insertions(+)
 create mode 100644 configurations/Wireworld/AND-NOTgare.json
 create mode 100644 configurations/Wireworld/ANDgate.json
 create mode 100644 configurations/Wireworld/ORgate.json
 create mode 100644 configurations/Wireworld/XORgate.json
 create mode 100644 configurations/Wireworld/diodes.json
 create mode 100644 models/wireworld.json

diff --git a/configurations/Wireworld/AND-NOTgare.json b/configurations/Wireworld/AND-NOTgare.json
new file mode 100644
index 0000000..88df174
--- /dev/null
+++ b/configurations/Wireworld/AND-NOTgare.json
@@ -0,0 +1,9 @@
+{
+    "data": "x = 20, y = 17\nCoB8CoB7C$C$C$C$C$11CBo2C$15bC$14b3C$15bC$14bCb4C$13bC$3CBo8C$C$C$C$C$3CoB3CoB10C!",
+    "height": 20,
+    "left": 0,
+    "model": "Wireworld",
+    "title": "AND-NOTgate",
+    "top": 2,
+    "width": 20
+}
diff --git a/configurations/Wireworld/ANDgate.json b/configurations/Wireworld/ANDgate.json
new file mode 100644
index 0000000..19a86aa
--- /dev/null
+++ b/configurations/Wireworld/ANDgate.json
@@ -0,0 +1,9 @@
+{
+    "data": "x = 20, y = 17\nbB7CoB9C$o$C$C$C$b6C$7bC$8b3C$5bCbC3bC6b2C$4b3C4bC5bC$3bCbCbCbCbC4bC$b2C5b3C4bC$C8bCb4C$C$C$C$b3CoB9CoB3C!",
+    "height": 20,
+    "left": 0,
+    "model": "Wireworld",
+    "title": "ANDgate",
+    "top": 2,
+    "width": 20
+}
diff --git a/configurations/Wireworld/ORgate.json b/configurations/Wireworld/ORgate.json
new file mode 100644
index 0000000..4b408b9
--- /dev/null
+++ b/configurations/Wireworld/ORgate.json
@@ -0,0 +1,9 @@
+{
+    "data": "x = 20, y = 17\nCoB8CoB7C$C$C$C$C$11CBo$13bC$13bC$12b8C$13bC$13bC$3CBo8C$C$C$C$C$CoB3CoB12C!",
+    "height": 20,
+    "left": 0,
+    "model": "Wireworld",
+    "title": "ORgate",
+    "top": 2,
+    "width": 20
+}
diff --git a/configurations/Wireworld/XORgate.json b/configurations/Wireworld/XORgate.json
new file mode 100644
index 0000000..69c4201
--- /dev/null
+++ b/configurations/Wireworld/XORgate.json
@@ -0,0 +1,9 @@
+{
+    "data": "x = 20, y = 17\nCoB8CoB7C$C$C$C$C$11CBo$13bC$12b4C$12bC2b5C$12b4C$13bC$3CBo8C$C$C$C$C$CoB3CoB12C!",
+    "height": 20,
+    "left": 0,
+    "model": "Wireworld",
+    "title": "XORgate",
+    "top": 2,
+    "width": 20
+}
diff --git a/configurations/Wireworld/diodes.json b/configurations/Wireworld/diodes.json
new file mode 100644
index 0000000..e7ea3a0
--- /dev/null
+++ b/configurations/Wireworld/diodes.json
@@ -0,0 +1,9 @@
+{
+    "data": "x = 20, y = 15\n8b2C$9Cb7CBoC$8b2C5$8b2C$8Cb6C2b3C$8b2C6bo$14bCBbC$13bC3bC$13bC3bC$13bC3bC$14b3C!",
+    "height": 20,
+    "left": 0,
+    "model": "Wireworld",
+    "title": "Diodes",
+    "top": 5,
+    "width": 20
+}
diff --git a/models/wireworld.json b/models/wireworld.json
new file mode 100644
index 0000000..d0cef06
--- /dev/null
+++ b/models/wireworld.json
@@ -0,0 +1,48 @@
+{
+    "alphabet": [
+        {
+            "color": [
+                48,
+                48,
+                48
+            ],
+            "name": "blank"
+        },
+        {
+            "color": [
+                0,
+                128,
+                255
+            ],
+            "name": "head"
+        },
+                {
+            "color": [
+                255,
+                255,
+                255
+            ],
+            "name": "tail"
+        },
+                {
+            "color": [
+                255,
+                128,
+                0
+            ],
+            "name": "copper"
+        }
+    ],
+    "author": "Brian Silverman",
+    "date": "1987",
+    "desc": "",
+    "neighborhood_data": {
+        "radius": 1
+    },
+    "neighborhood_name": "Moore",
+    "title": "Wireworld",
+    "transition_data": {
+        "rule_string": "1->2\n2->3\n3,1:[1..2]->1"
+    },
+    "transition_name": "Totalistic rulestring"
+}
-- 
GitLab