def generate_mine_board(self):
    mine_list = self.generate_mines()
    mine_board = [[0 for y in range(self.size)] for x in range(self.size)]
    for mine in mine_list:
        x = mine[0]
        y = mine[1]
        mine_board[y][x] = '◉'
        for x_ in range((x - 1), (x + 2)):
            for y_ in range((y - 1), (y + 2)):
                if ((0 <= x_ < self.size) and (0 <= y_ < self.size) and (mine_board[y_][x_] != '◉')):
                    mine_board[y_][x_] += 1
    return mine_board
def generate_mine_board(self):
    mine_list = self.generate_mines()
    mine_board = [[0 for y in range(self.size)] for x in range(self.size)]
    for mine in mine_list:
        x = mine[0]
        y = mine[1]
        mine_board[y][x] = '◉'
        for x_ in range((x - 1), (x + 2)):
            for y_ in range((y - 1), (y + 2)):
                if ((0 <= x_ < self.size) and (0 <= y_ < self.size) and (mine_board[y_][x_] != '◉')):
                    mine_board[y_][x_] += 1
    return mine_board