CyrusVatandoost / search-battle

Test out your path finding algorithms with other bots.
0 stars 3 forks source link

Doesn't traverse through row 7 or 8 at all #35

Closed Khobaka closed 6 years ago

Khobaka commented 6 years ago

I tried putting a treasure on these rows and I couldn't detect them.

CyrusVatandoost commented 6 years ago

Does the Treasure show on the Display? Do you have sample code of what you changed?

Khobaka commented 6 years ago

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");

image This was my map

and only this results shown

image