Closed Khobaka closed 6 years ago
Does the Treasure show on the Display? Do you have sample code of what you changed?
Yes, the treasure shown in the display.
I used this code:
for(int j = 0; j < blocks.length; j++)
for(int i = 0; i < blocks[0].length; i++)
if(blocks[j][i] instanceof Treasure)
System.out.print("Tresure at Column " + j + " Row " + i + "\n");
This was my map
and only this results shown
I tried putting a treasure on these rows and I couldn't detect them.