Hi,
I'm having problems with week 10 exercise 33 on course Object-Oriented programming with Java, part II.
Best regards
Supported languages are English and Finnish
when testing the code i get the following error:
FAIL: DungeonTest testThatLampsDecreaseWhenCheckingSituation
Tested Dungeon dungeon = new Dungeon(4,4,1,100,false); dungeon.run();
Blinkings of the lamp should decrease by one per one turn. Player can walk around in the darkness as much as he wants without the lamp battery going decreasing.
However, when I test my code myself it seems to work. The blinking goes down by one and so one.
Does anyone know what might cause this?
here is a link to my code:
http://paste.mooc.fi/871b8602
TMC Plugin has built-in code sharing feature.
In NetBeans, select TMC -> Send code to TMC pastebin. Copy the link you receive and paste it to your message.
You may use our web interface to share code snippets: http://paste.mooc.fi