<commit_before>module ClasslessMud
  module Commands
    class Look
      def self.perform game, player, message
        look_command, look_target = message.split " ", 2
        if !look_target
          look_around player
        else
          look_at player, look_target
        end
      end

      def self.look_around player
        player.puts player.room.description

        if player.room.items.any?
          items = player.room.items.map do |item|
            item.short_description
          end.join(", ")

          player.puts "You also see: #{items}"
        end<commit_msg>Add exits to the look command<commit_after>module ClasslessMud
  module Commands
    class Look
      def self.perform game, player, message
        _, look_target = message.split " ", 2
        if !look_target
          look_around player
        else
          look_at player, look_target
        end
      end

      def self.look_around player
        player.puts player.room.description

        if player.room.items.any?
          items = player.room.items.map do |item|
            item.short_description
          end.join(", ")

          player.puts "You also see: #{items}"
        end

        if player.room.exits.any?
          player.puts "Exits: #{player.room.exits.map(&:direction).join(' ')}"
        end
{'fraction_non_alphanumeric': 0.08149276466108149, 'fraction_numerical': 0.0015232292460015233, 'mean_word_length': 1.831896551724138, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2995637', 'n_tokens_mistral': 372, 'n_tokens_neox': 363, 'n_words': 97}