From 1b8674fabbdfab627f12727cdc3616a233cd767a Mon Sep 17 00:00:00 2001
From: Carl Worth <cworth@cworth.org>
Date: Sun, 7 Jun 2020 11:55:32 -0700
Subject: [PATCH] Add initial shell of a game for Empathy

No real functionality here yet.
---
 empathy.js                  | 17 +++++++++++++++++
 lmno.js                     |  3 ++-
 templates/empathy-game.html | 16 ++++++++++++++++
 3 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 empathy.js
 create mode 100644 templates/empathy-game.html

diff --git a/empathy.js b/empathy.js
new file mode 100644
index 0000000..12a743e
--- /dev/null
+++ b/empathy.js
@@ -0,0 +1,17 @@
+const express = require("express");
+const Game = require("./game.js");
+
+class Empathy extends Game {
+  constructor(id) {
+    super(id);
+  }
+}
+
+Empathy.router = express.Router();
+
+Empathy.meta = {
+  name: "Empathy",
+  identifier: "empathy",
+};
+
+exports.Game = Empathy;
diff --git a/lmno.js b/lmno.js
index d01b3e9..de95aa4 100644
--- a/lmno.js
+++ b/lmno.js
@@ -91,7 +91,8 @@ nunjucks.configure("templates", {
 const engines = {
   empires: require("./empires").Game,
   tictactoe: require("./tictactoe").Game,
-  scribe: require("./scribe").Game
+  scribe: require("./scribe").Game,
+  empathy: require("./empathy").Game
 };
 
 class LMNO {
diff --git a/templates/empathy-game.html b/templates/empathy-game.html
new file mode 100644
index 0000000..d84266c
--- /dev/null
+++ b/templates/empathy-game.html
@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+
+{% block head %}
+<link rel="stylesheet" href="/empathy/empathy.css" type="text/css" />
+
+<script src="/react.js"></script>
+<script src="/react-dom.js"></script>
+<script type="module" src="/empathy/empathy.js"></script>
+{% endblock %}
+
+{% block page %}
+<h1><a href="/empathy">Empathy</a></h1>
+
+<div id="empathy"></div>
+
+{% endblock %}
-- 
2.45.2