// See https://aka.ms/new-console-template for more information using DungeonMapGenerator; class Program { private const string SAVED_DUNGEONS_PATH = @"C:\Users\User\repos\PuzzleGame\Dungeons"; private const string DUNGEON_NAME = "dungeon"; static void Main(string[] args) { // Create an instance of your DungeonMapGenerator class var generator = new DungeonGenerator(); generator.GenerateDungeon(25, .5f); // Call the method you want to run DungeonMap map = generator.GenerateDungeon(25, .5f); DungeonMapSerializer.SerializeToFile(map, SAVED_DUNGEONS_PATH, DUNGEON_NAME ); // Print the map to the console (assuming it returns a string or something printable) Console.WriteLine(map.GetMapAsString()); Console.ReadLine(); } }