Game Development Reference
In-Depth Information
if (self.grid[col-1][row] ==
constants.TYPES[type] and
self.grid[col - 2 ][row] ~= nil and
self.grid[col - 2 ][row] == constants.TYPES[type])
then
--do nothing
else
unique = true
end
end
end
return type
end
This algorithm is doing the same thing we did previously with the columns, but it's also
checking on individual rows.
Search WWH ::




Custom Search