Beispiel #1
0
    def probability_guesser(self):
        """

        :return:
        """
        # Get all unrevealed blocks that touch unchecked blocks
        blocks_to_guess = set([])
        numbers_dictionary = {}
        for coordinate in self.unchecked_blocks:
            numbers_dictionary[coordinate] = self.servant.get_real_block_value(
                coordinate)
            unrevealed_blocks = self.servant.get_unrevealed_blocks(coordinate)
            blocks_to_guess.update(unrevealed_blocks)
        # self.servant.custom_pretty_print_field(self.exposed_field, blocks_to_guess)
        self.semi_solver = MineSemiSolver(blocks_to_guess, numbers_dictionary,
                                          self.rows, self.columns)
        self.semi_solver.choose()