summaryrefslogtreecommitdiff
path: root/life2/simulator/site/simulator.js
diff options
context:
space:
mode:
authorNicolas Paul <n@nc0.fr>2024-03-10 16:55:19 +0100
committerNicolas Paul <n@nc0.fr>2024-03-10 16:56:47 +0100
commit2cb26121e3fbf69b05e0be57f47b14a60079b7b2 (patch)
treeb8e2d6e82d2949cb47c35687ab92f998540fb939 /life2/simulator/site/simulator.js
parent3de89f6ddc41ecf608854ce0d6c7b9c56c4e24ed (diff)
simulator: Add template files
The new simulator is a simple Web application composed of a single HTML document. A controler script is available in //life2/simulator/site/simulator.js to manage the game displayed on the page. The board will be represented in a <canvas> element, using the Canvas Web API. Close: https://github.com/nc0fr/life2/issues/6 Signed-off-by: Nicolas Paul <n@nc0.fr>
Diffstat (limited to 'life2/simulator/site/simulator.js')
-rw-r--r--life2/simulator/site/simulator.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/life2/simulator/site/simulator.js b/life2/simulator/site/simulator.js
new file mode 100644
index 0000000..a760e90
--- /dev/null
+++ b/life2/simulator/site/simulator.js
@@ -0,0 +1,16 @@
+/**
+ * Copyright 2024 The Life2 Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * @license
+ */