class BotsThingy:
def __init__(self):
self.bots = []
def battle(self, bot1, bot2):
winner = self.runBattle(bot1, bot2)
loser = list({bot1, bot2} - {winner})[0]
d = (self.bots[winner].points - self.bots[loser].points) / 15
if d < 0:
self.bots[winner].killValue -= d
else:
self.bots[winner].points += d + 50 + self.bots[loser].killValue * 5
# bot.killValue starts out at 10.
# bot.points can be anything that's above 100-ish, I'd say 4000 is good.