summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 1c63a36..bd95570 100644
--- a/rules.js
+++ b/rules.js
@@ -1,2 +1,19 @@
exports.roles = [ "Maria Theresa", "Frederick", "Louis XV" ]
exports.scenarios = [ "Standard", "Introductory" ]
+
+exports.setup = function (seed, scenario, options) {
+ return {
+ seed: seed,
+ log: [],
+ undo: [],
+ active: 0, // player
+ power: 0, // power
+ state: "setup",
+ }
+}
+
+exports.view = function (state) {
+ return {
+ log: state.log
+ }
+}