From 8cef86f0eb8b46b0ed2d7c37fa216890300249f6 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 3 Nov 2021 22:22:57 +0530 Subject: java/DFS: Don't walk on visited, Add DFS solutions, change colors It didn't walk on visited grid but printed that as an iteration so it seemed like it did. --- resources/solutions/DFS-32.fornax | 13 +++++++++++++ resources/solutions/DFS-33.fornax | 25 +++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 resources/solutions/DFS-32.fornax create mode 100644 resources/solutions/DFS-33.fornax (limited to 'resources') diff --git a/resources/solutions/DFS-32.fornax b/resources/solutions/DFS-32.fornax new file mode 100644 index 0000000..1e8b226 --- /dev/null +++ b/resources/solutions/DFS-32.fornax @@ -0,0 +1,13 @@ +rows:7 cols:8 +.#.#..#..........#..#..$...#.#.........#.##...#......... +-#.#..#.@........#..#..$...#.#.........#.##...#......... +-#.#..#.-@.......#..#..$...#.#.........#.##...#......... +-#.#..#.--@......#..#..$...#.#.........#.##...#......... +-#.#..#.---@.....#..#..$...#.#.........#.##...#......... +-#.#..#.----@....#..#..$...#.#.........#.##...#......... +!-#.#..#.-----....#..@..$...#.#.........#.##...#......... +-#.#..#.-----@...#..#..$...#.#.........#.##...#......... +-#.#..#.------@..#..#..$...#.#.........#.##...#......... +!-#.#..@.-------..#..#..$...#.#.........#.##...#......... +-#.#..#.-------@.#..#..$...#.#.........#.##...#......... +|-#.#..#.--------.#..#..@...#.#.........#.##...#......... diff --git a/resources/solutions/DFS-33.fornax b/resources/solutions/DFS-33.fornax new file mode 100644 index 0000000..d8e221c --- /dev/null +++ b/resources/solutions/DFS-33.fornax @@ -0,0 +1,25 @@ +rows:7 cols:8 +.#.#..#..........#..#..$...#.#.........#.##...#......... +!-@.#..#..........#..#..$...#.#.........#.##...#......... +-#.#..#.@........#..#..$...#.#.........#.##...#......... +-#.#..#.-.......@#..#..$...#.#.........#.##...#......... +!-#.#..#.-.......-@..#..$...#.#.........#.##...#......... +-#.#..#.-.......-#..#..$@..#.#.........#.##...#......... +-#.#..#.-.......-#..#..$-..#.#..@......#.##...#......... +-#.#..#.-.......-#..#..$-..#.#..-......#@##...#......... +-#.#..#.-.......-#..#..$-..#.#..-......#-##...#.@....... +-#.#..#.-.......-#..#..$-..#.#..-......#-##...#.-@...... +!-#.#..#.-.......-#..#..$-..#.#..-......#-@#...#.--...... +-#.#..#.-.......-#..#..$-..#.#..-......#-##...#.--@..... +-#.#..#.-.......-#..#..$-..#.#..-......#-##...#.---@.... +-#.#..#.-.......-#..#..$-..#.#..-......#-##@..#.----.... +-#.#..#.-.......-#..#..$-..#.#..-..@...#-##-..#.----.... +!-#.#..#.-.......-#..#..$-..@.#..-..-...#-##-..#.----.... +-#.#..#.-.......-#..#..$-..#.#..-..-@..#-##-..#.----.... +-#.#..#.-.......-#..#..$-..#.#..-..--@.#-##-..#.----.... +-#.#..#.-.......-#..#..$-..#.#..-..---@#-##-..#.----.... +!-#.#..#.-.......-#..#..$-..#.#..-..----#-##-..@.----.... +-#.#..#.-.......-#..#..$-..#.#@.-..----#-##-..#.----.... +-#.#..#.-.......-#..#..$-..#.#-@-..----#-##-..#.----.... +!-#.#..#.-.......-#..#..$-..#.#---..----@-##-..#.----.... +|-#.#..#.-.......-#..#..@-..#.#---..----#-##-..#.----.... -- cgit 1.4.1-2-gfad0