pete stein wrote:
David Newton wrote:If you don't want to modify the original instance then you'll need to make a copy of it.
Which is what I believe my code example did.
As far as I understand it your code creates a copy pete and so does mine. But since I have a loop in CheckValueOfMazePoint I would have to give the index-variable to the method, right? The LocCont that I create should be a copy as well or am I wrong there?
It is as I said probably not the cleanest code but works for now.
More urgent is the question about where to put the paint method and how to handle it...
I know you are all very smart ;) please give me an answer.
Thank you so much and enjoy your Sunday!