diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-27 00:31:16 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-01 13:21:25 +0200 |
commit | e70a5bf1bfab5c6b27ef2f0551552c2f87640faa (patch) | |
tree | 5d8ab8c627423c784e066d2d7d10297a1a004039 /rules.js | |
parent | e1425681f4ebe2e52a50e8c8ad0d2d66fc937cfd (diff) | |
download | waterloo-campaign-1815-e70a5bf1bfab5c6b27ef2f0551552c2f87640faa.tar.gz |
Add skeleton.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/rules.js b/rules.js new file mode 100644 index 0000000..eebf791 --- /dev/null +++ b/rules.js @@ -0,0 +1,27 @@ +"use strict" + +const FRENCH = "French" +const COALITION = "Coalition" + +var game = null +var view = null +var states = {} + +exports.roles = [ FRENCH, COALITION ] +exports.scenarios = [ "June 16-18", "June 15-18" ] + +exports.setup = function (seed, scenario, options) { + return { + seed, + scenario, + undo: [], + log: [], + active: FRENCH, + state: "setup", + pieces: [], + } +} + +exports.view = function (state) { + return state +} |