From a479d98378de71855f9cd38e2da8204aef0158b8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 23 Jun 2023 18:02:24 +0200 Subject: No solo. Fix region and barbarian order for player counts... --- tools/genmove.js | 59 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 30 deletions(-) (limited to 'tools') 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("]") -- cgit v1.2.3