Exemplo n.º 1
0
 def __init__(self):
     AdventDay.__init__(self, 21)
     self.store = {
         'Weapons': [
             Item(8, 4, 0),
             Item(10, 5, 0),
             Item(25, 6, 0),
             Item(40, 7, 0),
             Item(74, 8, 0)
         ],
         'Armor': [
             Item(0, 0, 0), # No Armore option
             Item(13, 0, 1),
             Item(31, 0, 2),
             Item(53, 0, 3),
             Item(75, 0, 4),
             Item(102, 0, 5)
         ],
         'Rings': [
             Item(0, 0, 0), # No ring option
             Item(0, 0, 0), # No ring option
             Item(25, 1, 0),
             Item(50, 2, 0),
             Item(100, 3, 0),
             Item(20, 0, 1),
             Item(40, 0, 2),
             Item(80, 0, 3)
         ]
     }
     self.boss = Character(104, 1, 8)
     self.me = Character(100, 0, 0)
Exemplo n.º 2
0
    def __init__(self):
        AdventDay.__init__(self, 22)

        self.boss = Character(
            name="Boss",
            hit_points=71,
            mana=0,
            armor=0,
            damage=10
        )

        self.me = Character(
            name="Terodox",
            hit_points=50,
            mana=500,
            armor=0,
            damage=0
        )

        self.spells = {
            'MagicMissile': MagicMissile(),
            'Drain': Drain(),
            'Shield': Shield(),
            'Poison': Poison(),
            'Recharge': Recharge()
        }
        self.part_one_min = 1000000000
Exemplo n.º 3
0
 def __init__(self):
     AdventDay.__init__(self, 16)
     self.aunts = {}
     self.aunt_known = {
         'children': '3',
         'cats': '7',
         'samoyeds': '2',
         'pomeranians': '3',
         'akitas': '0',
         'vizslas': '0',
         'goldfish': '5',
         'trees': '3',
         'cars': '2',
         'perfumes': '1'
     }
Exemplo n.º 4
0
 def __init__(self):
     AdventDay.__init__(self, 23)
Exemplo n.º 5
0
 def __init__(self):
     AdventDay.__init__(self, 19)
     self.answers_part2 = 0
Exemplo n.º 6
0
 def __init__(self):
     self.all_guests = {}
     self.all_possibilities = {}
     AdventDay.__init__(self, 13)
Exemplo n.º 7
0
 def __init__(self):
     AdventDay.__init__(self, 17)
     self.containers = []
     self.results = []
     self.min_containers = []
Exemplo n.º 8
0
 def __init__(self):
     AdventDay.__init__(self, 15)
     self.all_ingredients = []
     self.results = 0
Exemplo n.º 9
0
    def __init__(self):
        AdventDay.__init__(self, 14)

        self.all_reindeer = []
        self.all_results = []