Map generator for the card game "Der Kartograph"

Aaron Fischer fd5b87b2da Add the GPL v3 license 3 weeks ago
cmd 9a30dec1c0 Error handling 1 month ago
pkg c6d8eabc44 Litle typo changes 1 month ago
Dockerfile 3871273730 Version 1.0 1 month ago
LICENSE fd5b87b2da Add the GPL v3 license 3 weeks ago
README.mkd f8fa902aef Add hints 1 month ago
docker-compose.yml 3b641cc546 Add docker compose file 1 month ago
go.mod 3871273730 Version 1.0 1 month ago
go.sum a1a65165ca SVG generator, start with PDF generator 2 months ago
license.txt fd5b87b2da Add the GPL v3 license 3 weeks ago

README.mkd

Der Kartograph Map Generator

Generate your own maps for "Der Kartograph" easily.

Changelog

  • 2021-03-25: First working version with a solid map generator. Output formats can be set to SVG, ASCII or JSON. The -web param will spawn a webserver with a nice GUI to generate maps and print them.

Build

You need to build the source first. The simplest way is to use the provided Dockerfile, which will build the software and create a convenient image (This is a multi stage Dockerfile, so the resulting image is a small Alpine Linux image with just the map generator binary.)

$ docker build -t kartograph .

Run

See all available options:

$ docker run -it kartograph -help

Spawn a webserver:

$ docker run -it kartograph -web

Generate a map with the seed "hey jim" and output it as a SVG image:

$ docker run -it kartograph -output=svg -seed='hey jim' > map.svg

You want an epic game? Lets generate a big map with a lot of wasteland and ruins:

$ docker run -it kartograph -seed=aaron \
      -size=20 -wastelands=100 -ruins=10 \
      -output=svg > map.svg

Author