static void Main(string[] args) { Console.WriteLine("---------------------------"); Console.WriteLine("-- Map Generator: v0.0.1 --"); Console.WriteLine("---------------------------"); PositionVector size = new PositionVector(64, 32); PGCMap.MAX_SIMULATIONS_OF_TILEGEN = 1; PGCMap.TILE_DEATH_LIMIT = 3; PGCMap.TILE_BIRTH_LIMIT = 2; PGCMap.BARRIER_PERCENTAGE = 10; PGCMap m = new PGCMap(size); m.PrintPGCMap(); // // Auto // while (true) // { // Console.Clear(); // m.RebuildFromState(m.tilemapState); // m.PrintPGCMap(); // Thread.Sleep(100); // } ConsoleKeyInfo cki = Program.Prompt(); while (cki.Key == ConsoleKey.Enter) { Console.Clear(); m.RebuildFromState(m.tilemapState); m.PrintPGCMap(); // m.PrintGraphs(); cki = Program.Prompt(); } }
public void PrintPGCMap() { PGCMap.PrintPGCMap(this); }
public static void PrintPGCMap(PGCMap m) { Console.WriteLine(m.ToString()); }