summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index cac0bbd..b310db9 100644
--- a/rules.js
+++ b/rules.js
@@ -470,6 +470,13 @@ function flip_pc(space) {
function get_colony_control(c) {
let control = 0
+ if (c === Canada) {
+ if (get_space_pc(QUEBEC) === PC_BRITISH && get_space_pc(MONTREAL) === PC_BRITISH)
+ return PC_BRITISH
+ if (get_space_pc(QUEBEC) === PC_AMERICAN && get_space_pc(MONTREAL) === PC_AMERICAN)
+ return PC_AMERICAN
+ return PC_NONE
+ }
for (let space of COLONIES[c]) {
let pc = get_space_pc(space)
if (pc === PC_BRITISH)