chiark / gitweb /
docs: wip document specs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 May 2021 01:58:19 +0000 (02:58 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 May 2021 01:58:19 +0000 (02:58 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
docs/gamespec.rst [new file with mode: 0644]
docs/index.rst

diff --git a/docs/gamespec.rst b/docs/gamespec.rst
new file mode 100644 (file)
index 0000000..3d9c0d8
--- /dev/null
@@ -0,0 +1,23 @@
+Game specs
+==========
+
+A game spec defines the starting layout for a game: **which pieces start
+on the table, and where**.
+
+It also defines some ancillary information about the game and its
+layout.  It does not contain information about the players.
+Players join a game as permitted by the game access control list,
+which is specified in a *table specification* (sadly not currently
+properly documented, but look at the Rustdoc for ``TableSpec``).
+
+General
+-------
+
+A game spec is a TOML file.  It has the following entries at the top
+level:
+
+ * ``table_size`` [array of 2 numbers].  Size of the table playing
+   area, in Otter internal units.  The default is ``[300,200]``.
+
+
+ * xxx
index fd8f18354b8844938df51292af88d39d3dd38924..bfd16fbb13e7fd93b57dd3dae29a300c38fccba8 100644 (file)
@@ -14,6 +14,7 @@ Otter - Online Table Top Environment Renderer
    user
    advanced
    bundles
+   gamespec
    shapelibs
    build
    install