#################################################
# 15-110-f18 hw2
# Your Name:
# Your Andrew ID:
# Your Section:
#################################################

#################################################
# Helper functions
#################################################

# You can place your helper functions here!
# like distance(x1, y1, x2, y2) and getFacultyOfficeHours(day)

#################################################
# hw2 problems
#################################################

# Edit these functions so they return the correct values.

def eggCartons(eggs):
    return 42

def circlesIntersect(x1, y1, r1, x2, y2, r2):
    return 42

def getTaOfficeHours(day):
    return 42

def getAllOfficeHours(day):
    return 42

#################################################
# ignore_rest # Keep this line here so the autograder
#             # ignores everything below here!!!!
################################################

def customMadLib():
    return 'Replace this with your custom madLib!  Have fun!'

def customInteractiveFiction():
    # This is bonus/optional:
    return 'Bonus/optional: Replace this with your custom interactive fiction!'

#################################################
# hw2 Test Functions (do not edit these!)
################################################

def testEggCartons():
    print('Testing eggCartons()... ', end='')
    assert(eggCartons(0) == 0)
    assert(eggCartons(1) == 1)
    assert(eggCartons(12) == 1)
    assert(eggCartons(13) == 2)
    assert(eggCartons(24) == 2)
    assert(eggCartons(25) == 3)
    print('Passed.')

def testCirclesIntersect():
    print('Testing circlesIntersect()... ', end='')
    assert(circlesIntersect(0, 0, 2, 3, 0, 2) == True)
    assert(circlesIntersect(0, 0, 2, 4, 0, 2) == True)
    assert(circlesIntersect(0, 0, 2, 5, 0, 2) == False)
    assert(circlesIntersect(3, 3, 3, 3, -3, 3) == True)
    assert(circlesIntersect(3, 3, 3, 3,- 3, 2.99) == False)
    print('Passed.')

def testGetTaOfficeHours():
    print('Testing getTaOfficeHours()... ', end='')
    assert(getTaOfficeHours('Mon') == 4)
    assert(getTaOfficeHours('Tue') == 2)
    assert(getTaOfficeHours('Wed') == 2)
    assert(getTaOfficeHours('Thu') == 0)
    assert(getTaOfficeHours('Fri') == 0)
    assert(getTaOfficeHours('Sat') == 2)
    assert(getTaOfficeHours('Sun') == 2)
    print('Passed.')

def testGetAllOfficeHours():
    print('Testing getAllOfficeHours()... ', end='')
    assert(getAllOfficeHours('Mon') == 4+2)
    assert(getAllOfficeHours('Tue') == 2)
    assert(getAllOfficeHours('Wed') == 2+2)
    assert(getAllOfficeHours('Thu') == 0)
    assert(getAllOfficeHours('Fri') == 0+2)
    assert(getAllOfficeHours('Sat') == 2)
    assert(getAllOfficeHours('Sun') == 2)
    print('Passed.')

#################################################
# hw2 Main (Do not edit below here!)
################################################

def testAll():
    testEggCartons()
    testCirclesIntersect()
    testGetTaOfficeHours()
    testGetAllOfficeHours()

def main():
    testAll()

if __name__ == '__main__':
    main()
