Beispiel #1
0
def placeFurniture(placedFurniture, availableFurniture, warnAreas):
    for i in warnAreas:
        print(i)
    freeSpace = fl.getFreeSpace(constants.WARNING_HARD, warnAreas)
    print("Free space", freeSpace)

    bruteForce(placedFurniture, availableFurniture, warnAreas)
Beispiel #2
0
def assessScore(furniture, warnAreas):
    freeSpaces = fl.getFreeSpace(constants.WARNING_HARD, warnAreas)

    if furniture == "bed":
        return assessBedScore(freeSpaces)
    #    elif getType(furniture) == "couch":
    #        return assessCouchScore(freeSpaces)
    elif furniture == "desk":
        return assessDeskScore(freeSpaces)
    #    elif getType(furniture) == "chair":
    #        return assessChairScore(freeSpaces)
    elif furniture == "tv":
        return assessTVScore(freeSpaces, warnAreas)
    elif furniture == "table":
        return assessTableScore(freeSpaces)
    #    elif getType(furniture) == "rug":
    #        return assessRugScore(freeSpaces)
    elif furniture == "shelf":
        return assessShelfScore(freeSpaces)