def __init__(self, id, node_location, name ): self.id = id self.wallet = {1: [currency_1(currency())] * 5, 5: [currency_5(currency())] * 5, 10: [currency_10(currency())] * 5, 20: [currency_20(currency())] * 6, 50: [currency_50(currency())] * 2, 100: [currency_100(currency())] * 2, 500: [currency_500(currency())] * 2, } self.node_location = node_location self.ownership_purple = [] self.ownership_light_blue = [] self.ownership_pink = [] self.ownership_orange = [] self.ownership_red = [] self.ownership_yellow = [] self.ownership_green = [] self.ownership_blue = [] self.ownership_railroad = [] self.name = name
def add_500(self, num): val = [[currency_1(currency())]] * num self.wallet[500].extend(val)