From 7b98e9c6efd97470248fb244a20c3dacb2942cd1 Mon Sep 17 00:00:00 2001
From: Tor Andersson <tor@ccxvii.net>
Date: Sun, 17 Mar 2024 14:30:04 +0100
Subject: Add initial client.

---
 rules.js | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

(limited to 'rules.js')

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
+	}
+}
-- 
cgit v1.2.3