So I have some time now, so I went and played around with some Python code, that writes a list of values to a file.
The code takes a starting value, and a multiplier. Then, it reduces the value in such a way so that the value reduces the most at first but gradually slows down.
I'm interested in this kind of thing.
Any guesses?
Code:
import time, sys
sys.stdout=open("data.txt", "w")
class enemy:
def __init__(self, defense=10):
self.defense=defense
def reduce_value(self, val, m=2):
lst=range(self.defense)
mul=val*m
if mul==1:
mul=m
if val<=val*mul:
val+=val/10
for i in lst:
if mul==1.0:
mul=1.1
print("{0}, {1}".format(val, mul))
val-=val/mul
print(val)
mul+=0.5
return val
tst=enemy(10)
print(tst.reduce_value(10, 1))