# Fountain A simple bot, picks the lowest number first and if any other bot chooses it too, it will increment the counter - the floor gets filled and the water flows down. When it reaches 11, it restarts to 1 - the water gets pumped back to the top. <!-- language: lang-py --> class Fountain: def __init__(self, index): self.index = index self.pick = 1 def select(self): return self.pick def update(self, choices: list): choices.pop(self.index) # I hope `choices[:]` is passed, not `choices`. for choice in choices: if choice == self.pick: self.pick += 1 if self.pick == 11: self.pick = 1