main_code_refactored.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:LSAT 作者: BillVanderLugt 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号