Skip to content

Instantly share code, notes, and snippets.

@super9mega
Created August 25, 2021 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save super9mega/9a4ba7582c8da434257393736fd6c459 to your computer and use it in GitHub Desktop.
Save super9mega/9a4ba7582c8da434257393736fd6c459 to your computer and use it in GitHub Desktop.
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