<commit_before>class BasicBrain
  def initialize(brainholder, enemy)
    @me  = brainholder
    @you = enemy
    @move_control = {:left  => [[-1, 0],[0, 0, 0, 43]],
                     :right => [[1, 0], [43, 0, 43, 43]],
                     :up    => [[0, -1],[43, 0, 0, 0]],
                     :down  => [[0, 1],[43, 43, 0, 43 ]]}
  end

  def move_instructions
    x_diff = @me.x - @you.x
    y_diff = @me.y - @you.y

    return @move_control[:left] if x_diff > 48
    return @move_control[:right] if x_diff < -48
    return @move_control[:up] if y_diff > 48
    return @move_control[:down] if y_diff < -48
    return nil
  end

  def move(direction)
    @last_move = direction
    return @move_control[direction]
  end

  #todo: figure out a way when to place a bomb
  def placing_bomb?
    false
  end
end<commit_msg>Basic brain, follow player more aggressively<commit_after>class BasicBrain
  def initialize(brainholder, enemy)
    @me  = brainholder
    @you = enemy
    @move_control = {:left  => [:left, [-1, 0],[0, 0, 0, 40]],
                     :right => [:right, [1, 0], [40, 0, 40, 40]],
                     :up    => [:up, [0, -1],[40, 0, 0, 0]],
                     :down  => [:down, [0, 1],[40, 40, 0, 40 ]]}
  end

  def move_instructions
    x_diff = @me.x - @you.x
    y_diff = @me.y - @you.y

    return @move_control[:left] if x_diff > 24
    return @move_control[:right] if x_diff < -24
    return @move_control[:up] if y_diff > 24
    return @move_control[:down] if y_diff < -24
    return nil
  end

  def placing_bomb?
    return false
  end
end
{'fraction_non_alphanumeric': 0.15082382762991128, 'fraction_numerical': 0.050697084917617236, 'mean_word_length': 2.1963562753036436, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '3260988', 'n_tokens_mistral': 646, 'n_tokens_neox': 563, 'n_words': 170}