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
275 downloads per month
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
Example
Innovation Highlights
This project introduces several key innovations:
- 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
- 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. - No support to square grid
This project only supports hex grid. We will add support to square grid in the future.
Future Plans
- Add more map generation algorithm
We will add more map generation algorithm in the future. - support to square grid
We will add support to square grid in the future. - Optimize the JSON file as ruleset information
We will optimize the JSON file as ruleset information in the future. In foldersrc/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