diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-03-17 14:30:04 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-03-17 14:30:04 +0100 |
commit | 7b98e9c6efd97470248fb244a20c3dacb2942cd1 (patch) | |
tree | e9ecc42fc55c296208bf0f18ccb4ca55d938b6a6 /rules.js | |
parent | eb1b52100cc054f7ddbeb865e8b001828b07704d (diff) | |
download | maria-7b98e9c6efd97470248fb244a20c3dacb2942cd1.tar.gz |
Add initial client.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 + } +} |