Skip to content

kosausrk/dungeonforge-ml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ML Dungeon Generator | CS4780 Project

This project combines unsupervised learning and generative modeling to create structured, playable dungeon mazes. Using K-Means clustering and a Variational Autoencoder (VAE), it learns spatial patterns from thousands of randomly generated grids and then samples new layouts from a compressed latent space.

Tags: unsupervised learning · generative modeling · VAE · K-Means

Core Pipeline -generate_dungeons() creates mazes with guaranteed entry → exit paths.

-KMeans clusters dungeons based on structural similarity.

-VAE learns a low-dimensional latent representation to generate new layouts.

-simulate_player() uses BFS (Breadth-First Search) to check if a generated dungeon is solvable.

-visualize_player_path() overlays the player’s exact solution path (if one exists)

Generated Mazes

mazes mazes mazes

Generated Player Solutions

player_paths

Key Takeaways

-Applies key ML concepts: clustering, latent variables, probabilistic sampling

-Demonstrates generative design for game maps / intelligent systems

-BFS validation ensures outputs are not just realistic—but playable

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages