I need to programm a mars rover who passes through a line of terrain and who finds the shortest path. However, my program unexpectedly requested an input instead of an output on the default stream (System.out) which looks like this " _________ ".
The error message I get is this one:
Your program unexpectedly requested input.
Expected: an output on the default stream (System.out) that is " __________ "
Your program's input and output:
--> new 36 15
--> __________
--> / \
--> | /
--> | |
--> ___/ ___
--> / |
--> * x ** | |
--> ** / |
--> ___ ** \ /
--> / \ ** _| R
--> | _
--> \ /
--> _| *
--> * *
-->
--> up 4
--> down
--> left 10
--> debug
this error still occurs, but do not just add a System.out.println(" _____________________ ", do not do that because it doesnt work, try something else, maybe with the loop or smth. DM me for the code if you want to help!!