def __init__(self, directions=4, num_steps=10): self.dice = dice_student.Dice(directions) self.num_steps = num_steps self.x_pos = 0 self.y_pos = 0
def __init__(self, sides=2, block_size=10): self.dice = dice_student.Dice(sides) self.block_size = block_size self.outcomes = {} for i in range(sides): self.outcomes[i] = 0