Sfoglia il codice sorgente

link to carcassonne score, add "freedom" schema

George C. Privon 5 anni fa
commit
f5ee205bfc
2 ha cambiato i file con 45 aggiunte e 0 eliminazioni
  1. 8 0
      README.md
  2. 37 0
      freedom/README.md

+ 8 - 0
README.md

@@ -0,0 +1,8 @@
+# Game Scorekeeping
+
+A set of resources I've created for keeping track of scores for games I've played.
+
+## Games
+
+- [Carcassonne](https://code.crackonoon.com/george/CarcassonneScore) ([github link](https://github.com/privong/CarcassonneScore)): Score-keeping for the Carcassonne board game. A python CLI to record scores each turn, along with specific information on expansions used while playing.
+- [Freedom: The Underground Railroad](freedom/): A SQLite3 schema for keeping track of scores to compare game-to-game for this cooperative game.

+ 37 - 0
freedom/README.md

@@ -0,0 +1,37 @@
+# Freedom: The Underground Railroad
+
+- [Publisher Link](https://www.academygames.com/pages/freedom)
+- [Boardgamegeek](https://boardgamegeek.com/boardgame/119506/freedom-underground-railroad)
+
+This is a SQLite3 schema for comparing different plays of this game.
+It follows the recommended scoring on page 10 of the game instructions.
+
+## SQLite3 Schema
+
+```
+CREATE TABLE games (gameID INTEGER PRIMARY KEY NOT NULL,
+                    date TEXT NOT NULL DEFAULT CURRENT_DATE,
+                    players TEXT NOT NULL DEFAULT "",
+                    location TEXT NOT NULL DEFAULT "",
+                    difficulty TEXT NOT NULL DEFAULT "Normal",
+                    n_freed INTEGER NOT NULL DEFAULT 0,
+                    n_lost INTEGER NOT NULL DEFAULT 0,
+                    req_freed INTEGER NOT NULL DEFAULT 0,
+                    supp_tokens INTEGER NOT NULL DEFAULT 0,
+                    n_market_cards INTEGER NOT NULL DEFAULT 0,
+                    won INTEGER NOT NULL DEFAULT 0,
+                    score INTEGER GENERATED ALWAYS AS (2*n_freed - n_lost + 10 * req_freed + 10 * supp_tokens + 5 * iif(won, n_market_cards, 0)) STORED);
+```
+
+## Notes
+
+- The `difficulty` column be one of the following:
+    - "Normal": default difficulty for the game
+    - "Easy": The "easier play" option described on page 10 of the instructions.
+    - "Difficult": The "more difficult" option described on page 10 of the instructions.
+- The following columns should be set to `1` or `0` depending on whether the objective was met or not, respectively:
+    - `req_freed`: were the required number of slaves freed?
+    - `supp_tokens`: Were all of the required support tokens purchased?
+    - `won`: Was the game won?
+- The `players` and `location` columns can be filled in as desired by the user.
+