def calculateSpeed(self):
    for anObject in self.main.objects:
        if isinstance(anObject, scorer.Scorer):
            score = anObject.score
        if isinstance(anObject, ItemManager):
            itemManager = anObject
    k = 0
    if (score > 10):
        k = 1
    if (score > 20):
        k = 2
    if (score > 50):
        k = 3
    if (score > 100):
        k = 4
    if (score > 200):
        k = 5
    if (score > 400):
        k = 6
    if (score > 600):
        k = 7
    if (score > 800):
        k = 8
    if (score > 1000):
        k = 9
    if (score > 2000):
        k = 10
    if (score > 3000):
        k = 11
    if (score > 4000):
        k = 12
    if (score > 5000):
        k = 13
    if (score == 9999):
        k = 14
    self.maxTimeTillNew = {0: 100, 1: 80, 2: 60, 3: 50, 4: 40, 5: 36, 6: 34, 7: 30, 8: 28, 9: 26, 10: 24, 11: 22, 12: 20, 13: 19, 14: 18}[k]
    if (k <= 2):
        self.moveFrec = 10
    else:
        self.moveFrec = (self.maxTimeTillNew / 3)
    scorer.comboLastTime = (self.maxTimeTillNew * 3)
    if (k > 0):
        itemManager.itemFrec = max(int((self.maxTimeTillNew * 2.5)), (30 * 2.5))
        itemManager.itemLastTime = (itemManager.itemFrec * 8)
        itemManager.itemsAvailable = min(k, 8)
def calculateSpeed(self):
    for anObject in self.main.objects:
        if isinstance(anObject, scorer.Scorer):
            score = anObject.score
        if isinstance(anObject, ItemManager):
            itemManager = anObject
    k = 0
    if (score > 10):
        k = 1
    if (score > 20):
        k = 2
    if (score > 50):
        k = 3
    if (score > 100):
        k = 4
    if (score > 200):
        k = 5
    if (score > 400):
        k = 6
    if (score > 600):
        k = 7
    if (score > 800):
        k = 8
    if (score > 1000):
        k = 9
    if (score > 2000):
        k = 10
    if (score > 3000):
        k = 11
    if (score > 4000):
        k = 12
    if (score > 5000):
        k = 13
    if (score == 9999):
        k = 14
    self.maxTimeTillNew = {0: 100, 1: 80, 2: 60, 3: 50, 4: 40, 5: 36, 6: 34, 7: 30, 8: 28, 9: 26, 10: 24, 11: 22, 12: 20, 13: 19, 14: 18}[k]
    if (k <= 2):
        self.moveFrec = 10
    else:
        self.moveFrec = (self.maxTimeTillNew / 3)
    scorer.comboLastTime = (self.maxTimeTillNew * 3)
    if (k > 0):
        itemManager.itemFrec = max(int((self.maxTimeTillNew * 2.5)), (30 * 2.5))
        itemManager.itemLastTime = (itemManager.itemFrec * 8)
        itemManager.itemsAvailable = min(k, 8)