def fire(self, nick):
        if not self.loaded:
            self.reload()

        if nick not in self.stats:
            self.stats[nick] = {'hits': 0, 'misses': 0}

        if(self.position == self.chamber):
            self.loaded = False
            self.fired = True
            self.stats[nick]['hits'] += 1
            return True
        else:
            self.position += 1
            self.stats[nick]['misses'] += 1
            return False
dataset/ETHPy150Open facebook/pyaib/example/plugins/jokes.py/Roulette.fire/original