Comp 151 Project 7


Due: Sat Dec 2nd at 11:59pm

Summary: You will have the chance in your penultimate project of  your semester with a fun project. Most of our projects have been smaller projects. Now we will build on the last project to begin a larger project, more akin to what we might do in a comp152 class.


Description


Take your solution to project 6 and lets add a few things to it.

My sample implementation of project 8


It took me about 2 hours to put my solution to this project together. You have just about 2 weeks (not including the Thanksgiving holiday) to do this project. I expect this will take most of you somewhere between 9 and 16  hours to complete. Please start early. You will have to work on this some time and then put this one away for a while and come back to it. You will not be able to put in an all-nighter and finish this one.

You'll need to do a rectangle overlap check in order to do this project. We'll covered this in class (if you are an earnest go-getter you might see this before we do it in class). I got this technique from the following site http://www.geeksforgeeks.org/find-two-rectangles-overlap/





## Returns true if two rectangles (l1, r1) and (l2, r2) overlap, assumes l1,l2, r1 &r2 are Zelle Points
def doOverlap(l1, r1, l2, r2):
    # If one rectangle is on left side of other
    if l1.getX() > r2.getX() or l2.getX() > r1.getX():
       return False
    # If one rectangle is above other
    if (l1.getY() < r2.getY() or l2.getY() < r1.getY():
       return False
    return True #we could use else but not really needed

Additional Requirements:


Your functions must contain all of your code except the one line invoking the  main function

To help me identify your work, make the name of your program file

yourFirstInitialLastNameLab7.py

(so mine would be JSantoreLab7.py) 

Comment your code. include the usual
 put the following at the beginning of the program as a comment:

Submission:

zip the entire folder up again this time - there will be images as well as python code.

Submit the zip file of the lab via blackboard as usual. Don't forget to make sure your file has you name in the file name.