Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.01 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.01 KB

Carcassonne Map Generator

Python3 License

A tool that generates a randomized Carcassonne map!

Usage

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

Requirements

Create a venv with the required packages:

python -m venv .venv
source .venv/Scripts/activate
python -m pip install -r requirements.txt

Unit Tests

python -m unittest -v

Screenshot

Carcassonne map example