<commit_before>require_relative 'player'

class Ai < Player
  attr_accessor :marker, :enemy_marker, :name

  def initialize(params)
    super
    @enemy_marker = params[:enemy_marker]
  end

  # The higher a move scores the more likely it will be chosen.
  # Move is given a score based on the how few or many markers are on a 'line'
  # A 'line' is a method of winning. For example, given the board:

  # 0,1,2,<commit_msg>removed reader methods from AI<commit_after>require_relative 'player'

class Ai < Player
  attr_accessor :enemy_marker

  def initialize(params)
    super
    @enemy_marker = params[:enemy_marker]
  end

  # The higher a move scores the more likely it will be chosen.
  # Move is given a score based on the how few or many markers are on a 'line'
  # A 'line' is a method of winning. For example, given the board:

  # 0,1,2,
{'fraction_non_alphanumeric': 0.07302709069493522, 'fraction_numerical': 0.007067137809187279, 'mean_word_length': 3.6448087431693987, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1839177', 'n_tokens_mistral': 275, 'n_tokens_neox': 263, 'n_words': 115}