Esempio n. 1
0
 private static void NewMethod(ConcurrentQueue<Tuple<Map, char>> queue, Tree tree, Map currentMap, KeyValuePair<char, Tuple<Point, int, Direction>> kvp, Map move)
 {
     var moveNode = tree.Find(move);
     if (moveNode == null) {
         tree.AddNeighbor(currentMap, move);
         queue.Enqueue(new Tuple<Map, char>(move, kvp.Key));
         //Console.WriteLine("Queued:\n" + move);
     }
     else ;// tree.AddNeighbor(currentMap, moveNode);
 }