Here is the link to my github:
https://github.com/jeremyduncanartif...ence-software/
The bug is in the the function thefunctionpartone line 258, it goes to a class called CountingTheFourDirections and a function called direction_value__which_direction_is_lowest__direct ion_value_array_transfer_value_to_new_array__displ aying_which_direction_is_lowest
From there I don't know how to fix it. I have looked at it and decided to come here for some help.
Here is the error:
Code:
Feeler 1 the lowest value is the west direction, so west is blocked.
Array element zero is: 0 value
Values with feeler 1
I tried to take 9 steps in the north direction, but I actual took 8 steps.
I tried to take 9 steps in the south direction, but I actual took 6 steps.
I tried to take 9 steps in the east direction, but I actual took 6 steps.
I tried to take 9 steps in the west direction, but I actual took 5 steps.
step 1.) change feeler in that direction.
step 2.) feel again in that direction
note: the line A5 to A4
Feeler 2 the lowest value is the west direction, so west is blocked.
Array element zero is: 0 value
Values with feeler 2
I tried to take 9 steps in the north direction, but I actual took 6 steps.
I tried to take 9 steps in the south direction, but I actual took 5 steps.
I tried to take 9 steps in the east direction, but I actual took 7 steps.
I tried to take 9 steps in the west direction, but I actual took 4 steps.
The second feeler did something to unblock feeler 1
Step 1 ended = make feeler 1 and 2 unequal - gain control.
note: line A5 to A3
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Feeler 2 the lowest value is the south direction, so south is blocked.
Array element zero is: 0 value
Feeler 2 the lowest value is the south direction, so south is blocked.
Array element zero is: 0 value
Feeler 2 the lowest value is the east direction, so east is blocked.
Array element zero is: 1 value
Feeler 2 the lowest value is the south direction, so south is blocked.
Array element zero is: 0 value
Feeler 2 the lowest value is the north, south direction, so south is blocked.
Array element zero is: 1 value
Feeler 2 the lowest value is the west direction, so west is blocked.
Array element zero is: 1 value
Feeler 2 the lowest value is the south direction, so south is blocked.
Array element zero is: 1 value
Feeler 2 the lowest value is the south direction, so south is blocked.
Array element zero is: 1 value
Feeler 2 the lowest value is the east direction, so east is blocked.
Array element zero is: 1 value
Feeler 2 the lowest value is the west direction, so west is blocked.
Array element zero is: 0 value
Values with feeler 2
I tried to take 9 steps in the north direction, but I actual took 6 steps.
I tried to take 9 steps in the south direction, but I actual took 6 steps.
I tried to take 9 steps in the east direction, but I actual took 7 steps.
I tried to take 9 steps in the west direction, but I actual took 4 steps.
Step 2 ended = make feeler 1 and 2 equal - lose control.
note: from A3, line A4 is closed.
A3 went to A4 9 times before going to A6
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Feeler 3 the lowest value is the west direction, so west is blocked.
Array element zero is: 0 value
Feeler 3 the lowest value is the north, east direction, so north is blocked.
Array element zero is: 0 value
Values with feeler 3
I tried to take 9 steps in the north direction, but I actual took 4 steps.
I tried to take 9 steps in the south direction, but I actual took 6 steps.
I tried to take 9 steps in the east direction, but I actual took 4 steps.
I tried to take 9 steps in the west direction, but I actual took 5 steps.
Step 3 ended = make feeler 1 and 2 unequal - regain control.
note: line A3 to line A6
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Process returned 0 (0x0) execution time : 0.281 s
Press any key to continue.
west is blocked for the top part, but they should be different directions.
Run the program a few times to get the error it doesn't happen every time. And no I have not debugged the program because I'm not very good at that and thought it would be easier to ask you for help instead.