From: Carl Worth <cworth@cworth.org>
Date: Tue, 7 Jul 2020 12:58:28 +0000 (-0700)
Subject: Pre-allocate an Empires game with ID QRST
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=ac5661338b7bc1f1f43c5f80de09c6856defba23;p=lmno-server

Pre-allocate an Empires game with ID QRST

To simplify the development of the current flempires client.
---

diff --git a/lmno.js b/lmno.js
index b971bcb..f5e7c1e 100644
--- a/lmno.js
+++ b/lmno.js
@@ -163,6 +163,13 @@ LMNO.letters = "CCDDDGGGHHJKLLLLMMMMPPPPQRRRSSSTTTVVWWYYZ";
 
 const lmno = new LMNO();
 
+/* Pre-allocate an empires game with ID QRST.
+ * This is for convenience in the development of the flempires
+ * client which would like to have stable API endpoints across
+ * server restarts.
+ */
+lmno.create_game_with_id("empires", "QRST");
+
 /* Force a game ID into a canonical form as described above. */
 function lmno_canonize(id) {
   /* Capitalize */