Hi there
I am developing a grid system that would generate non-overlapping grid cells. Upon creating a grid I want to be able to check to see if the potential grid overlaps any other grid cells. If it does then clamp the new grid cell to the already existent grid.
I can input data into a linkedList and then iterate through the list and print out the data. However I am finding it difficult to be able to access a single cell of the linkedlist to compare and before moving to the next element.
Is the best tactic to write a function that will automatically compare values as it iterates through the list?
Or is it better to return some kind of object or pointer from the list to the grid so that it can then check for potential collisions.
Many thanks