]> git.cworth.org Git - lmno-server/commitdiff
Pre-allocate an Empires game with ID QRST
authorCarl Worth <cworth@cworth.org>
Tue, 7 Jul 2020 12:58:28 +0000 (05:58 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 7 Jul 2020 12:58:28 +0000 (05:58 -0700)
To simplify the development of the current flempires client.

lmno.js

diff --git a/lmno.js b/lmno.js
index b971bcb6332e4292fa8848b3325461307ac4b18c..f5e7c1eea74af41df45a909e19b6eaa8cd83d19d 100644 (file)
--- 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 */