def step_2(self):
'''
STEP 2: Set-Up Puzzle
- Extract Variable Names
- Populate Event Space
'''
first = self._find_first()
i = first
# print ('first var is ', self.prompt_text[first])
# print ('PROMPT', self.prompt_pairs)
# print ()
self.vars = self._collect_vars(i)
#print ('generating permutations...')
perms = list(itertools.permutations(self.vars))
print ('Possible permutations of {} variables: {}'.format(len(self.vars), len(perms)))
self.permutations = perms # before any rules
self.viable = perms # viable candidates after rule(s)
#print ()
return self.vars
评论列表
文章目录