def int_to_reel_list(self, value):

        if value == -999:
            value = 0
            # todo hack

        output_list = []

        # convert our number to a string
        value = str(value)

        # pad the string with leading zeros
        value = value.zfill(len(self.reels))

        # slice off excess characters if the value is longer than num of reels

        # how many digits do we have to slice?
        trim = len(value) - len(self.reels)
        # and... slice!
        value = value[trim:]

        # todo if we don't do the above trim then it will just show the highest
        # digits, effective "shifting" the score by one. Might be a fun feature?

        # generate our list with one digit per item
        for digit in value:
            output_list.append(int(digit))

        # reverse the list so the least significant is first
        output_list.reverse()

        # replace fake position digits with `None`
        for i in range(len(output_list)):
            if not self.reels[i]:
                output_list[i] = None

        return output_list
PING reply
dataset/ETHPy150Open missionpinball/mpf/mpf/devices/score_reel.py/ScoreReelGroup.int_to_reel_list--crossover with--dataset/ETHPy150Open gawel/irc3/irc3/plugins/core.py/Core.ping