Fill an Area with 4 differnet size rectangles (in a random order) [1000 points]
Posted on 2002-06-17
I have 3 squares and 1 rectangle with these sizes:
200 x 200
300 x 300
400 x 400
and 1 rectangle
200 x 400
What I need to do is given a larger rectangle which will always change, fill it with random amounts of the above four shapes in random orders. I would need to be able to change the shapes from time to time as well (they will always be square or rectangles though).
Does anyone have any idea how I can do this? I am not looking for code, just some pointers.