So im trying to get my player to be able to move from room to room…
Question Answered step-by-step So im trying to get my player to be able to move from room to room… So im trying to get my player to be able to move from room to room in my text-based game in python.Anytime I enter the direction the code just exits.while True: directions = [‘North,South,East,West’] print (‘You are in {}’).format(current_room) movement = input(‘What is you next move?’) if movement in directions: if movement in current_room: current_room = rooms[current_room[directions]] else: print(‘Can you breath in space?’) elif movement == ‘quit’: print (‘Maybe Next Time?’) else: print (‘ What are you trying to say?’)This is what I have but clearly the loop is not working. Computer Science Engineering & Technology Python Programming IT 140: INTRODUCTI Share QuestionEmailCopy link Comments (0)


