Skip to content

Randomized Carcassonne map generator. Inspired by the board game with the same name.

License

Notifications You must be signed in to change notification settings

pierre-dejoue/carcassonne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Randomized Carcassonne map generator. Inspired by the board game with the same name.

Resources

License

Stars

Watchers

Forks

Languages