Game engine for "The Campaign for North Africa" as published by Simulations Publications, Inc (SPI).
SPI's Campaign for North Africa is a boardgame.
This repository is built to help me run a computer-moderated game. I'm assuming that all players will download the rules, maps, and counters for themselves.
Data for generating the map was sourced from Michael Miller's "Hex Database" spreadsheet. All errors converting to JSON are entirely my fault.
The best source for the rules is the SPI site. The PDF is linked here for convenience.
You will need to print out counters and the map to play.
The Campaign for North Africa - Play Group has a forum.
Michael Miller created a very nice PDF of the map.
SVG Hex logic from bencates gist was used to generate the SVG of the board.
Shortest path is worth looking at NGraph and Yet another bidirectional algorithm for shortest paths (Pijls & Post).
Color codes from W3Schools Color Names and their nice RGB Tool.
https://www.jamesshore.com/v2/blog/2022/javascript-colors-and-the-corruption-of-buy-vs-build
<terrainmap>
Blank 0
Flat Desert Coastal 1 // Clear
Flat Desert Rocky 2 // Rock/Gravel
Flat Desert Sandy 3 // Desert
Flat Farmland 4 // Delta
Flat Marsh 5 // Salt Marsh
Flat Moss 6 // Moss
Flat Mud 7 // Rough
Flat Swamp 8 // Swamp
Mountains 9 // Mountains
Water Sea 10 // Sea
</terrainmap>