summaryrefslogtreecommitdiff
path: root/rules.js
blob: eebf791aae4de7e67c0cf1eeacc7925cd5943e88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
}