input: Write a function to create an interactive text-based RPG game in Python where the player has options to move around in an environment and battle monsters. The function should include a Player class with attributes such as health, location, and monsters_killed, a Room class with attributes like name, description, and monsters, and a Monster class with attributes like name and health. The function should also include a main game loop where the player can choose to move to different rooms or fight monsters. If the player's health drops to 0, the game should end with a message indicating the player has been defeated.
  
  class Player(object):
   def __init__(self):
   self.health = 100
   self.location = 'room one'
   self.monsters_killed = 0
  
  class Room(object):
   def __init__(self):
   self.name = ''
   self.description = ''
   self.monsters = []
  
   def add_monster(self, monster):
   self.monsters.append(monster)
  
  class Monster(object):
   def __init__(self):
   self.name = ''
   self.health = 100
  
   def attack(self, player):
   player.health -= 10
  
  def start_game():
   player = Player()
  
  while True:
   print(f'You are in {player.location}.')
   print('Available actions: move, fight')
   response = input('What would you like to do? ').lower()
  
   if response == 'move':
   pass
  
   if response == 'fight':
   pass
  
   if player.health <= 0:
   print ('You have been defeated!')
   break
  
  if __name__ == '__main__':
   start_game()
  
  assert play_text_rpg() == 'You have been defeated!'
output: 
  def start_game():
      player = Player()
      room_one = Room()
      room_one.name = 'room one'
      room_one.description = 'This is the first room.'
      room_two = Room()
      room_two.name = 'room two'
      room_two.description = 'This is the second room.'
      monster_one = Monster()
      monster_one.name = 'Goblin'
      monster_two = Monster()
      monster_two.name = 'Orc'
      room_one.add_monster(monster_one)
      room_two.add_monster(monster_two)
      rooms = {'room one': room_one, 'room two': room_two}
  
      while True:
          print(f'You are in {player.location}.')
          print('Available actions: move, fight')
          response = input('What would you like to do? ').lower()
  
          if response == 'move':
              if player.location == 'room one':
                  player.location = 'room two'
              else:
                  player.location = 'room one'
  
          if response == 'fight':
              current_room = rooms[player.location]
              if current_room.monsters:
                  monster = current_room.monsters[0]
                  print(f'You are fighting a {monster.name}!')
                  monster.attack(player)
                  if player.health > 0:
                      player.monsters_killed += 1
                      current_room.monsters.remove(monster)
                      print(f'You defeated the {monster.name}!')
                  else:
                      print('You have been defeated!')
                      break
              else:
                  print('There are no monsters to fight here.')
  
          if player.health <= 0:
              print('You have been defeated!')
              break
  