Generate Settlers of Catan maps with constraint programming
Generate an ‘optimal’ Settlers of Catan board where:
Written with MiniZinc 2.2.1. There are two models, one generates the board layout and the other generates the markers for the board. They can be generated all at once:
$ ./gen_island.sh $(( ( RANDOM % 10000 ) + 1 ))
Where or you can provide your own random seed, otherwise the island will always be based on the first solution the models find.