def make_rooms():
    rooms = []
    for x in range(0, 20):
        random.seed(None)
        room = Room(random.randrange(5, 20), random.randrange(5, 20), 0, libtcod.blue, char="#", MAP=MAP)
        room.set_map_coords()
        if room.map_coords:
            if room.no_collision(rooms):
                room.add_to_map()
                rooms.append(room)
    return rooms
def main():
    random.seed(None)
    MAP = []
    for h in range(0, HEIGHT):
        r = []
        for w in range(0, WIDTH):
            r.append(".")
        MAP.append(r)
    rooms = []
    for x in range(0, 20):
        random.seed(None)
        room = Room(random.randrange(5, 20), random.randrange(5, 20), MAP)
        room.set_map_coords()
        if room.map_coords and room.no_collision(rooms):
            rooms.append(room)

    for room in rooms:
        room.add_to_map()

    prntmap(MAP)