Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
138
reputation
6

The Brewmaster

from world import Life
from world.essential_actions import drink_coffee, eat_pretzels
from world.personal.life import fun, chess, scooter

class Brewmaster(Life):
    def __init__(self):
        self.role = (
                ('FLL', 'Full Stack Developer'),
                ('SOL', 'Solutions Developer'),
                ('ESQ', 'Attorney'),
                ('HBW', 'Homebrewer'),
                ('FTH', 'Father'),
                ('HUS', 'Husband'),
            )
        self.spouse = 'Rachel'

    def work(self):
        drink_coffee()
        eat_pretzels()

        super().work()

    def play(self):
        with self.kids() as kiddos:
            fun.on_playground_with( kiddos )
            fun.cooking_with( kiddos )
            scooter.ride_with( kiddos )
            chess.teach( kiddos )

    def love(self):
        return self.spouse

    def sleep(self):
        return False

adam = Brewmaster()
adam.work()
adam.play()
adam.love()
adam.sleep()
1
answer
1
question
~2k
people reached

Top tags (6)

Score 3
Posts 1
Posts % 50
Score 3
Posts 1
Score 3
Posts 1
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top posts (2) All Questions Answers | Votes Newest

Badges (6)

Gold

Silver

Bronze

6

Rarest