Skip to content

A project to demonstrate various map generation algorithms

Notifications You must be signed in to change notification settings

vitaliy-bezugly/DemoMapGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DemoMapGenerator

This repository contains a class library and a console application for generating random maps of planets and their interconnecting edges. The class library provides domain models for Map, Planets, and Edges, as well as the logic to generate a random map based on various properties, such as the number of planets and the size of the map.

Map Generation Logic

The Map model represents the overall map and holds a collection of Planet and Edge models. The Planet model represents a planet with its unique ID, name, and coordinates. The Edge model represents an edge connecting two planets and holds the distance between them.

The Planets and Edges models can be used to define custom maps. Additionally, the library includes a MapGenerator class that can generate a random map based on the desired properties. The generator accepts input parameters such as the number of planets, the minimum and maximum distances between planets, and the size of the map. It outputs a randomly generated map that satisfies the specified constraints.

Console Application

The repository includes a console application that utilizes the class library to generate a map and save it as a PNG image file. The application prompts the user to enter the desired properties for the map, such as the number of planets and the size of the map. It then generates and saves the map as an image file.

🧿 Example Maps

The repository provides examples of maps created using various algorithms. These maps demonstrate the capabilities of the map generation logic. Below are a few sample images:

map-3 map-4 map-5 map-6 map-0 map-1 map-2

About

A project to demonstrate various map generation algorithms

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages