A tool that generates a randomized Carcassonne map!
Most simple example:
python carcassonne.py resources/tileset_base.json
A more elaborate example with the river tileset used a single time, excluding the T river tile, and with a total of 800 tiles (the base tileset is reused:)
python carcassonne.py -n 800 --river-policy EXCLUDE_T --river-period 0 --zoom 0.5 resources/tileset_base.json resources/tileset_river.json
- Python 3.x: http://www.python.org/download/
- pygame: https://www.pygame.org/
Create a venv with the required packages:
python -m venv .venv
source .venv/Scripts/activate
python -m pip install -r requirements.txt
python -m unittest -v