Skip to content

Procedurally-Generated-Human/python-ascii-map-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Creates maps using cellular automata rather than the more popular perlin noise method.

2-5 generations or cellular automata and a land percentage between 40-60% tend to create the best looking maps.

Note: there is not a singular cellular automata algorithm, the one used in this code turns a cell into land(#) if 5-7 of its neighbours are land. the function "cellular_automata" is where you can change the rules.

............#####....##...............#####.......
...........#######..###.##...........######.......
......####.######...###.##.........########.......
.##...####....##...####............###...#####....
.##...####....##...####............##....#####....
.##..#####...##########.....##..........#######...
....#####.....########.....###..........#.#####...
...#######........####.....##.##.........####.....
..####...##.......#####.......##.......######.....
.#####..............####.#............######......
.###...........##....##.##...........#..#..#......
..#............##....##.............#....#..#.....
....##...............###..........##..............
....###.......###....###.........###..............
.....##.......####....###.........#...............
.##.........######................................
.###....##.####.##..........##....................
.##.....###.##............######.#................
...#....###...............####.##.................
.........#.................##.....................

About

Python map generator using cellular automata

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages