From e813dffc26d4ccd5d33a03e7f109e7348c9c03a6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 25 Oct 2023 01:51:24 +0200 Subject: Add skeleton. --- README | 3 ++ about.html | 21 +++++++++++ cover.1x.jpg | Bin 0 -> 28162 bytes cover.2x.jpg | Bin 0 -> 96136 bytes cover.png | Bin 0 -> 208551 bytes create.html | 0 play.html | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ rules.js | 55 +++++++++++++++++++++++++++++ thumbnail.jpg | Bin 0 -> 16465 bytes title.sql | 1 + 10 files changed, 189 insertions(+) create mode 100644 README create mode 100644 about.html create mode 100644 cover.1x.jpg create mode 100644 cover.2x.jpg create mode 100644 cover.png create mode 100644 create.html create mode 100644 play.html create mode 100644 rules.js create mode 100644 thumbnail.jpg create mode 100644 title.sql diff --git a/README b/README new file mode 100644 index 0000000..68dd7ba --- /dev/null +++ b/README @@ -0,0 +1,3 @@ +This game is implemented with the generous permission of Fort Circle Games. + +Rules and art assets are Copyright 2022 Fort Circle Games. diff --git a/about.html b/about.html new file mode 100644 index 0000000..2687996 --- /dev/null +++ b/about.html @@ -0,0 +1,21 @@ +

+Votes for Women is a card-driven game covering the American women's suffrage +movement from 1848-1920, culminating with the ratification (or rejection) of +the Nineteenth Amendment. + +

+To win, the Suffragist player must have Congress pass the proposed Amendment +and then have three-fourths of the states (36 of the then 48 states) ratify the +Amendment. The Opposition player wins by either preventing Congress from +passing the proposed Amendment or by having 13 states reject the Amendment. + +

+Designer: Tory Brown. +
Publisher: Fort Circle Games. +
Programming: Mischa Untaga. + +

diff --git a/cover.1x.jpg b/cover.1x.jpg new file mode 100644 index 0000000..727fb68 Binary files /dev/null and b/cover.1x.jpg differ diff --git a/cover.2x.jpg b/cover.2x.jpg new file mode 100644 index 0000000..0d50825 Binary files /dev/null and b/cover.2x.jpg differ diff --git a/cover.png b/cover.png new file mode 100644 index 0000000..d6b6fd5 Binary files /dev/null and b/cover.png differ diff --git a/create.html b/create.html new file mode 100644 index 0000000..e69de29 diff --git a/play.html b/play.html new file mode 100644 index 0000000..4721946 --- /dev/null +++ b/play.html @@ -0,0 +1,109 @@ + + + + + + + +VOTES FOR WOMEN + + + + + + + + + +
+ + +
  • TITLE +
  • +
  • 🎴   Event +
  • + +
    +
    +
    + + +
  • Rules +
  • History +
  • Cards +
  • +
  • Resign +
  • +
    +
    +
    + + + +
    + +
    + + + + +
    +
    + +
    + +
    +
    + +


    +


    + +
    + + + + diff --git a/rules.js b/rules.js new file mode 100644 index 0000000..3486699 --- /dev/null +++ b/rules.js @@ -0,0 +1,55 @@ +"use strict" + +var game +var view +var states + +const SUF = "Suffragist" +const OPP = "Opposition" + +exports.scenarios = [ "Standard" ] +exports.roles = [ SUF, OPP ] + +exports.setup = function (seed, scenario, options) { + game = { + seed: seed, + log: [], + undo: [], + active: null, + state: null, + } + return game +} + +exports.action = function (state, current, action, arg) { + game = state + let S = states[game.state] + if (action in S) + S[action](arg, current) + else + throw new Error("Invalid action: " + action) + return game +} + +exports.resign = function (state, current) { + game = state + if (game.state !== "game_over") { + if (current === SUF) + goto_game_over(OPP, "Suffragist resigned.") + if (current === OPP) + goto_game_over(SUF, "Opposition resigned.") + } + return game +} + +exports.view = function(state, current) { + game = state + + let view = { + log: game.log, + prompt: null, + actions: null, + } + + return view +} diff --git a/thumbnail.jpg b/thumbnail.jpg new file mode 100644 index 0000000..55b2a93 Binary files /dev/null and b/thumbnail.jpg differ diff --git a/title.sql b/title.sql new file mode 100644 index 0000000..dab8f33 --- /dev/null +++ b/title.sql @@ -0,0 +1 @@ +insert or replace into titles ( title_id, title_name, bgg ) values ( 'votes-for-women', 'Votes for Women', 311900 ); -- cgit v1.2.3