Created
August 25, 2021 18:53
-
-
Save super9mega/9a4ba7582c8da434257393736fd6c459 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import time | |
import math | |
def auging(eff_lvl, augment, chances): | |
return ((((math.sqrt(eff_lvl * 1.5)/200) + 0.9)**augment) * 100) + chances | |
#edit these | |
lvl = 160 | |
chances = 6 | |
goal_aug = 40 | |
####### | |
count = 0 | |
current_aug = 1 | |
top_aug = 0 | |
random.seed(time.time) | |
print(auging(100, 40, 6)) | |
while top_aug < goal_aug: | |
random_chance = random.uniform(0,100) | |
if random_chance < auging(lvl, current_aug, chances): | |
current_aug += 1 | |
if current_aug > top_aug: | |
top_aug = current_aug | |
print("new king:", end="") | |
print(top_aug) | |
else: | |
current_aug = 1 | |
count += 1 | |
print(top_aug) | |
print("it took:") | |
print(count) | |
print("items") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment