Beispiel #1
0
        static void Main(string[] args)
        {
            HallsMap map = new HallsMap();

            Console.WriteLine(map.ToString());
            Console.WriteLine("Write something to find a Path (type 'exit' to quit)");
            while (Console.ReadLine() != "exit")
            {
                IteratableTile startTile = map.getStart();
                var            path      = startTile.Path;
                foreach (var tile in path)
                {
                    Console.WriteLine(tile);
                    //todo improve visual outpu
                }
            }
        }
Beispiel #2
0
 public IteratableTile(MapTile tile, HallsMap halls, MapTile parent)
 {
     this.tile   = tile;
     this.halls  = halls;
     this.parent = parent;
 }