summaryrefslogtreecommitdiff
path: root/tools/genmove.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-23 18:02:24 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-07 18:39:37 +0200
commita479d98378de71855f9cd38e2da8204aef0158b8 (patch)
tree033ed28ef6ad3feb9194c57a35650f2a80e7a5f4 /tools/genmove.js
parenta13ebf1939ca4418b7c830ee353083cf7b1b3d94 (diff)
downloadtime-of-crisis-a479d98378de71855f9cd38e2da8204aef0158b8.tar.gz
No solo. Fix region and barbarian order for player counts...
Diffstat (limited to 'tools/genmove.js')
-rw-r--r--tools/genmove.js59
1 files changed, 29 insertions, 30 deletions
diff --git a/tools/genmove.js b/tools/genmove.js
index a1dbc19..52a87cd 100644
--- a/tools/genmove.js
+++ b/tools/genmove.js
@@ -22,46 +22,45 @@ function set_add(set, item) {
array_insert(set, a, item)
}
-const ITALIA = 1
-const ASIA = 2
-const GALLIA = 3
-const MACEDONIA = 4
-const PANNONIA = 5
-const THRACIA = 6
-
-const AEGYPTUS = 7
-const AFRICA = 8
-const HISPANIA = 9
-
-const BRITANNIA = 10
-const GALATIA = 11
-const SYRIA = 12
-
-const ALAMANNI_HOMELAND = 13
-const FRANKS_HOMELAND = 14
-const GOTHS_HOMELAND = 15
-const NOMADS_HOMELAND = 16
-const SASSANIDS_HOMELAND = 17
-
-const MARE_OCCIDENTALE = 18
-const MARE_ORIENTALE = 19
-const OCEANUS_ATLANTICUS = 20
-const PONTUS_EUXINUS = 21
+const ITALIA = 0
+const ASIA = 1
+const GALLIA = 2
+const MACEDONIA = 3
+const PANNONIA = 4
+const THRACIA = 5
+
+const BRITANNIA = 6
+const GALATIA = 7
+const SYRIA = 8
+
+const AEGYPTUS = 9
+const AFRICA = 10
+const HISPANIA = 11
+
+const ALAMANNI_HOMELAND = 12
+const FRANKS_HOMELAND = 13
+const GOTHS_HOMELAND = 14
+const NOMADS_HOMELAND = 15
+const SASSANIDS_HOMELAND = 16
+
+const MARE_OCCIDENTALE = 17
+const MARE_ORIENTALE = 18
+const OCEANUS_ATLANTICUS = 19
+const PONTUS_EUXINUS = 20
const names = [
- "null",
"ITALIA",
"ASIA",
"GALLIA",
"MACEDONIA",
"PANNONIA",
"THRACIA",
- "AEGYPTUS",
- "AFRICA",
- "HISPANIA",
"BRITANNIA",
"GALATIA",
"SYRIA",
+ "AEGYPTUS",
+ "AFRICA",
+ "HISPANIA",
"ALAMANNI_HOMELAND",
"FRANKS_HOMELAND",
"GOTHS_HOMELAND",
@@ -109,7 +108,7 @@ adj(MARE_OCCIDENTALE, OCEANUS_ATLANTICUS, MARE_ORIENTALE)
adj(ALAMANNI_HOMELAND)
console.log("const ADJACENT = [")
-for (let i = 0; i <= 21; ++i) {
+for (let i = 0; i < 21; ++i) {
console.log("\t/*", names[i], "*/ [", ADJACENT[i].map(i => names[i]).join(", "), "],")
}
console.log("]")