diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-05-26 13:47:50 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 17:53:32 +0100 |
commit | 797717e115567c75960398a3f26e2450bfed1334 (patch) | |
tree | 3090efcf4013903dbb3371981b649ddcd045b9d3 /rules.js | |
parent | 168a810ea24d1c223834aadf68212b325cb60cec (diff) | |
download | plantagenet-797717e115567c75960398a3f26e2450bfed1334.tar.gz |
Add skeleton.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/rules.js b/rules.js new file mode 100644 index 0000000..d336037 --- /dev/null +++ b/rules.js @@ -0,0 +1,31 @@ +"use strict" + +const BOTH = "Both" +const LANCASTER = "Lancaster" +const YORK = "York" + +const P1 = LANCASTER +const P2 = YORK + +const HIT = [ "0", '\u2776', '\u2777', '\u2778', '\u2779', '\u277A', '\u277B' ] +const MISS = [ "0", '\u2460', '\u2461', '\u2462', '\u2463', '\u2464', '\u2465' ] + +let game = null +let view = null +let states = {} + +exports.roles = [ LANCASTER, YORK ] + +exports.scenarios = [ + "Ia. Henry VI", + "Ib. Towton", + "Ic. Somerset's Return", + "II. Warwicks' Rebellion", + "III. My Kingdom for a Horse", + "I-III. Wars of the Roses", + "I. Plantagenets Go to War", + "IIY. The Kingmaker", + "IIL. Lancastrian Legitimacy Fades", + "IIIY. New Rivals", + "IIIL. Yorkists' Last Stand", +] |