From 29affe09b459127422544474986a69d83b2fe5ac Mon Sep 17 00:00:00 2001 From: Joël Simoneau Date: Mon, 21 Oct 2024 16:09:57 -0400 Subject: Data package. --- tools/makelayout.js | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 tools/makelayout.js (limited to 'tools/makelayout.js') diff --git a/tools/makelayout.js b/tools/makelayout.js new file mode 100644 index 0000000..c187254 --- /dev/null +++ b/tools/makelayout.js @@ -0,0 +1,59 @@ +const PROVINCES = [ + "Andhra", + "Bengal", + "Gondwana", + "Gujarat", + "Jaunpur", + "Karnataka", + "Madhyadesh", + "Maharashtra", + "Malwa", + "Orissa", + "Rajput Kingdoms", + "Sindh", + "Tamilakam", + "Delhi", + "Mountain Passes", + "Punjab", +] + +const print = console.log + +print('') +print('') +print('') + +const COLORS = { + DS: "black", + BK: "cyan", + VE: "yellow", + mongols: "red", +} + +let x = -700, y = 100 + +function advancex() { + x += 150 +} + +function advancey() { + x -= 150 * 4 + y += 100 +} + +for (let s of PROVINCES) { + // faction holdings - 100x80 ellipse + print(`${s}`) + for (let f of [ "DS", "BK", "VE", "mongols" ]) { + print(``) + advancex() + } + advancey() +} + +print('') -- cgit v1.2.3