def execute(self):
        if not self.args:
            # Reset the room the player is in
            if self.pc.location:
                self.pc.location.reset()
                self.pc.update_output('Room %s has been reset.\n' % self.pc.location.id)
            else:
                self.pc.update_output('That\'s a pretty useless thing to do in the void.\n')
        else:
            exp = r'(room[ ]+(?P<room_id>\d+)([ ]+in)?([ ]+area)?([ ]+(?P<room_area>\w+))?)|(area[ ]+(?P<area>\w+))'
            match = re.match(exp, self.args, re.I)
            if not match:
                self.pc.update_output('Type "help reset" to get help with this command.\n')
                return
            room_id, room_area, area = match.group('room_id', 'room_area', 'area')
            if area:
                # reset an entire area
                reset_area = self.world.get_area(area)
                if reset_area:
                    reset_area.reset()
                    self.pc.update_output('Area %s has been reset.\n' % reset_area.name)
                    return
                else:
                    self.pc.update_output('That area doesn\'t exist.\n')
                    return
            # Reset a single room
            if room_area:
                area = self.world.get_area(room_area)
                if not area:
                    self.pc.update_output('That area doesn\'t exist.\n')
                    return
            else:
                if self.pc.location:
                    area = self.pc.location.area
                else:
                    self.pc.update_output('Type "help resets" to get help with this command.\n')
                    return
            room = area.get_room(room_id)
            if not room:
                self.pc.update_output('Room %s doesn\'t exist in area %s.\n' % (room_id, 
                                                                                  area.name))
            room.reset()
            self.pc.update_output('Room %s in area %s has been reset.\n' % (room.id, area.name))
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/commands/commands.py/Reset.execute/original