I'm using an array of arrays for each row of the map to make a virtual grid of what the map looks like. Each tile location will either have a 0 or a 1 to determine whether that tile is empty or if there is already an object occupying that tile.The array would look something like this: The 1's display the inpenetrable border around the map. All the 0's are open spaces where an object, such as a tree, rock, or building can be placed.1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0 , 0, 0, 0, 0, 0, 0, 11, 0, 0 , 0, 0, 0, 0, 0, 0, 11, 0, 0 , 0, 0, 0, 0, 0, 0, 11, 0, 0 , 0, 0, 0, 0, 0, 0, 11, 0, 0 , 0, 0, 0, 0, 0, 0, 11, 0, 0 , 0, 0, 0, 0, 0, 0, 11, 0, 0 , 0, 0, 0, 0, 0, 0, 11, 0, 0 , 0, 0, 0, 0, 0, 0, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1What I'm trying to do is figure out if I have an object of 2x2 tile size, how many different locations this 2x2-tiled object will fit!This is what I have so far:for rowNumber in minRow...maxRow{ var theRow = tiles[rowNumber] for columnNumber in minColumn...maxColumn{ if(theRow[columnNumber] == 0){ //
0
0
324