Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BoardViz.py
OptimalCatan-markers.mzn
OptimalCatan-tiles.mzn
README.md
board-markers.png
magic-square.mzn

README.md

Optimal Catan

Generate an 'optimal' Settlers of Catan board where:

  • No two of the same resources are adjacent.
  • Lumber and brick are not adjacent (take that road builders!)
  • None of the same numbers are on the same resource
  • 6's and 8's aren't adjacent and all on separate resources.
  • None of the same numbered markers are adjacent.

example board

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.

Read more

You can’t perform that action at this time.