ericmichael / polyomino

Self-Assembly of Polyomino Tiles
3 stars 2 forks source link

toString representation breaks Grid #8

Closed ericmichael closed 10 years ago

ericmichael commented 10 years ago

After a call to toString, Grid coordinates are no longer the same as when it started.

ericmichael commented 10 years ago

Since Java is pass by reference, several Grid Points were having their x and y coordinates modified. Easy fix was to create a new tile list with copies of the original objects so that the function could operate on copies and not originals.

Fixed in: 9ec0d036b0d69477d5b79f18e53900c7bbd6edf2