Hi,
I'm having problems with week _10 exercise 33 on course Java 2.
All the output is exactly same as i had expected but it keeps saying that one test is failed.
Tested Dungeon dungeon = new Dungeon(5,5,5,5,false); dungeon.run();
//Game should end in defeat when moving 5 times! Your print output was:
5
@ 0 0
v 2 0
v 4 4
v 1 1
v 0 1
v 1 4
@.V..
VV...
.....
.....
.V..V
4
@ 0 1
v 3 4
v 3 1
v 0 4
v 3 2
v 3 0
...V.
@..V.
...V.
.....
V..V.
3
@ 0 0
v 0 3
v 2 2
v 2 1
v 4 3
v 4 4
@....
..V..
..V..
V...V
....V
2
@ 0 1
v 2 3
v 1 1
v 3 3
v 3 4
v 1 4
.....
@V...
.....
..VV.
.V.V.
1
@ 0 0
v 2 2
v 2 3
v 4 0
v 3 3
v 3 1
@...V
...V.
..V..
..VV.
.....
YOU LOST
This is my output as i had expected but i am not sure what the actual output should since there is not example for out of battery use case.
Thanks in advance...