about summary refs log tree commit diff stats
path: root/resources
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-11-03 22:22:57 +0530
committerAndinus <andinus@nand.sh>2021-11-03 22:22:57 +0530
commit8cef86f0eb8b46b0ed2d7c37fa216890300249f6 (patch)
tree4d50ebc636068bcc1aa0fc8f7c8bbbc2ac252a41 /resources
parentc9e3cb29fedcbe7e247d5abfb61bc4f0024ce5f4 (diff)
downloadfornax-8cef86f0eb8b46b0ed2d7c37fa216890300249f6.tar.gz
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.
Diffstat (limited to 'resources')
-rw-r--r--resources/solutions/DFS-32.fornax13
-rw-r--r--resources/solutions/DFS-33.fornax25
2 files changed, 38 insertions, 0 deletions
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
+.#.#..#..........#..#..$...#.#.........#.##...#.........
+!-@.#..#..........#..#..$...#.#.........#.##...#.........
+-#.#..#.@........#..#..$...#.#.........#.##...#.........
+-#.#..#.-.......@#..#..$...#.#.........#.##...#.........
+!-#.#..#.-.......-@..#..$...#.#.........#.##...#.........
+-#.#..#.-.......-#..#..$@..#.#.........#.##...#.........
+-#.#..#.-.......-#..#..$-..#.#..@......#.##...#.........
+-#.#..#.-.......-#..#..$-..#.#..-......#@##...#.........
+-#.#..#.-.......-#..#..$-..#.#..-......#-##...#.@.......
+-#.#..#.-.......-#..#..$-..#.#..-......#-##...#.-@......
+!-#.#..#.-.......-#..#..$-..#.#..-......#-@#...#.--......
+-#.#..#.-.......-#..#..$-..#.#..-......#-##...#.--@.....
+-#.#..#.-.......-#..#..$-..#.#..-......#-##...#.---@....
+-#.#..#.-.......-#..#..$-..#.#..-......#-##@..#.----....
+-#.#..#.-.......-#..#..$-..#.#..-..@...#-##-..#.----....
+!-#.#..#.-.......-#..#..$-..@.#..-..-...#-##-..#.----....
+-#.#..#.-.......-#..#..$-..#.#..-..-@..#-##-..#.----....
+-#.#..#.-.......-#..#..$-..#.#..-..--@.#-##-..#.----....
+-#.#..#.-.......-#..#..$-..#.#..-..---@#-##-..#.----....
+!-#.#..#.-.......-#..#..$-..#.#..-..----#-##-..@.----....
+-#.#..#.-.......-#..#..$-..#.#@.-..----#-##-..#.----....
+-#.#..#.-.......-#..#..$-..#.#-@-..----#-##-..#.----....
+!-#.#..#.-.......-#..#..$-..#.#---..----@-##-..#.----....
+|-#.#..#.-.......-#..#..@-..#.#---..----#-##-..#.----....