예제 #1
0
    def first_run(self):

        new_player = input("What is your name? ")
        print(
            "Great to have you on board {name}! We're glad to have you join our team. You can put your stuff in the\n"
            "break room and get started. You're free to leave at any time just say the words I QUIT."
            .format(name=new_player))
        # global WAITING_ROOMS, PATIENT_ROOMS, BREAK_ROOM

        self.WAITING_ROOMS = [
            Rooms.WaitingRoom(i) for i in range(0, settings.max_waiting_rooms)
        ]
        self.PATIENT_ROOMS = [
            Rooms.PatientRoom(i) for i in range(0, settings.max_patient_rooms)
        ]
        self.BREAK_ROOM = Rooms.BreakRoom(1)
        self.AVAIL_ROOMS = [room for room in self.WAITING_ROOMS]
        self.AVAIL_ROOMS.append(self.BREAK_ROOM)

        return Player(self.BREAK_ROOM, new_player)