summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-03-17 14:30:04 +0100
committerTor Andersson <tor@ccxvii.net>2024-03-17 14:30:04 +0100
commit7b98e9c6efd97470248fb244a20c3dacb2942cd1 (patch)
treee9ecc42fc55c296208bf0f18ccb4ca55d938b6a6 /rules.js
parenteb1b52100cc054f7ddbeb865e8b001828b07704d (diff)
downloadmaria-7b98e9c6efd97470248fb244a20c3dacb2942cd1.tar.gz
Add initial client.
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
+ }
+}