Added an engine class to automate the process of running all of the functions within the generator class.
This commit is contained in:
parent
0db7421b58
commit
b67212a059
1 changed files with 8 additions and 4 deletions
|
@ -289,8 +289,12 @@ class Generator(object):
|
|||
print ("You should take a couple of days per week to rest.")
|
||||
pass
|
||||
|
||||
class Engine(object):
|
||||
def start(Generator):
|
||||
Generator.get_goal()
|
||||
Generator.get_preferences()
|
||||
days = Generator.get_frequency()
|
||||
Generator.give_workout(days)
|
||||
|
||||
gen1 = Generator()
|
||||
gen1.get_goal()
|
||||
gen1.get_preferences()
|
||||
days = gen1.get_frequency()
|
||||
gen1.give_workout(days)
|
||||
Engine.start(gen1)
|
||||
|
|
Loading…
Reference in a new issue