def generate_room(width: int, height: int) -> list:
    """Generate a rectangular room with given width and height"""
    room = []

    for i in range(height):
        string = ""
        for j in range(width):
            if i in (0, width - 1):
                string += "-"
            else:
                if j in (0, width - 1):
                    string += "|"
                else:
                    string += "."
        room.append(string)
    return room