class Room def __init__(self, room_id: str, pathcounter: int): self.id = room_id self.pathcount = pathcounter self.rooms = [None for _ in range(6)] def createRoom(self,no: int,id): self.rooms[no]=Room(id,self.pathcount+1) def full_id(self): if self.id is None: return None fullid = self.id for room in self.rooms: if room is None: return None fullid = fullid + room.id return fullid def rooms_without_id(self): none_rooms = [] for doorcounter, room in enumerate(self.rooms): if room is None: none_rooms.append(doorcounter) return none_rooms def setRoomId(self,id:str): if self.id is None & self.pathcount == 0: self.id =id else: print("Id can not be set for initial Path Element!") class LibMapper: def __init__(self, no_of_rooms_to_find): self.no_of_rooms = no_of_rooms_to_find def start(self): if __name__ == '__main__':