Thanks to visit codestin.com
Credit goes to lib.rs

3 releases

Uses new Rust 2024

new 0.1.3 Sep 29, 2025
0.1.2 Sep 16, 2025
0.1.1 Sep 16, 2025

#471 in Algorithms

Codestin Search App Codestin Search App Codestin Search App

275 downloads per month

MIT/Apache

4MB
13K SLoC

Civ Map Generator

This is a civilization map generator. This algorithm is primarily based on the implementation in Civilization V, with some references from Civilization VI.

How to add a map type

How to add a map type

Example

Civilization-Remastered

Innovation Highlights

This project introduces several key innovations:

  1. Support both flat and pointy hex
    Original civilization implementation only supports pointy hex, Unciv implementation only supports flat hex, but this project supports both flat and pointy hex.

Miss Features

  1. Only support to generate fractal and pangaea map
    This project only supports to generate fractal and pangaea map. we will add more map generation algorithm in the future.
  2. No support to square grid
    This project only supports hex grid. We will add support to square grid in the future.

Future Plans

  1. Add more map generation algorithm
    We will add more map generation algorithm in the future.
  2. support to square grid
    We will add support to square grid in the future.
  3. Optimize the JSON file as ruleset information
    We will optimize the JSON file as ruleset information in the future. In folder src/jsons, only a litter files are used as ruleset information to generate map. And Some map parameters are hard-coded in the code. We will optimize it in the future.

Reference project

License

Licensed under either of

at your option.

Contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~19MB
~432K SLoC