aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorymherklotz <ymherklotz@gmail.com>2016-12-11 12:56:44 +0000
committerymherklotz <ymherklotz@gmail.com>2016-12-11 12:56:44 +0000
commit85a84c87350ee1ef2b1adc1c3b1d4418de87b064 (patch)
treeba7dd9e617b43834b3a7d408a8e29007827bcc76
parentbda878a84a62765875dd316d8280fe1743952aee (diff)
downloadA-star-algorithm-85a84c87350ee1ef2b1adc1c3b1d4418de87b064.tar.gz
A-star-algorithm-85a84c87350ee1ef2b1adc1c3b1d4418de87b064.zip
finished rough version of algorithmfix_1
-rwxr-xr-xbin/mainbin418000 -> 418000 bytes
-rw-r--r--src/main.cpp4
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/main b/bin/main
index 2eda8ee..9033237 100755
--- a/bin/main
+++ b/bin/main
Binary files differ
diff --git a/src/main.cpp b/src/main.cpp
index 4640dfe..feb3bc0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -40,7 +40,7 @@ int main(int argc, char *argv[]) {
const int start_x = 9;
const int start_y = 13;
- const int end_x = 89;
+ const int end_x = 76;
const int end_y = 38;
// print out that information.
@@ -86,7 +86,7 @@ int main(int argc, char *argv[]) {
tiles[i] = 0;
tiles[start_y * cols + start_x] = 3;
- tiles[end_y * rows + end_x] = 2;
+ tiles[end_y * cols + end_x] = 2;
path_finder.start_algorithm(tiles, cols, rows);