<commit_before>require_relative "antcolonymethods.rb"
require_relative "ants.rb"
# PRAISE THE SUN
#
# made by: <NAME>
class AntColony < AntColonyMethods

  methods = AntColonyMethods.new
  grid = Hash.new(" ")
  count = 0

  puts "Select the number of columns:"
  maxc = gets.to_i
  puts "Select the number of rows:"
  maxr = gets.to_i
  puts "Select the number of dead ants: (recommended: #{maxr*maxc/10})"
  deadants = gets.to_i
  puts "Select the number of ants alive: (recommended: #{maxr*maxc/100})"
  aliveants = gets.to_i
  puts "An interaction is the full cycle of ants."
  puts "Chose the number of interactions you want:"
  interactions = gets.to_i
  methods.populate_grid(grid,maxr,maxc,deadants,aliveants)
  puts "Show all interactions? (y/n)"
  if gets == "y"
    while count != interactions
      ant = Ants().new
      methods.show_grid(grid,maxr,maxc)
      count += 1
    end
  else
    # NOTE: This environment show the inicial board and the result.
    methods.show_grid(grid,maxr,maxc)
    methods.show_grid(grid,maxr,maxc)
  end
end<commit_msg>showing the class and its objects, now commented<commit_after>require_relative "antcolonymethods.rb"
require_relative "ant.rb"
# PRAISE THE SUN
#
# made by: <NAME>
class AntColony < AntColonyMethods

  methods = AntColonyMethods.new
  grid = Hash.new(" ")
  ants = Array.new
  count = 0

  puts "Select the number of columns:"
  maxc = gets.to_i
  puts "Select the number of rows:"
  maxr = gets.to_i
  puts "Select the number of dead ants: (recommended: #{maxr*maxc/10})"
  deadants = gets.to_i
  puts "Select the number of ants alive: (recommended: #{maxr*maxc/100})"
  aliveants = gets.to_i
  puts "An interaction is the full cycle of ants."
  puts "Chose the number of interactions you want:"
  interactions = gets.to_i
  methods.populate_grid(grid,maxr,maxc,deadants,aliveants,ants)
  puts "Show all interactions? (y/n)"
  if gets == "y"
    while count != interactions
      methods.show_grid(grid,maxr,maxc)

      count += 1
    end
  else
    # NOTE: This environment show the inicial board and the result.
    # NOTE: How to interact in the ants object.
    # ants.each do |ant|
    #   puts ant.to_s
    # end
    methods.show_grid(grid,maxr,maxc)
    while count != interactions

      count += 1
    end
    methods.show_grid(grid,maxr,maxc)
  end
end
{'fraction_non_alphanumeric': 0.10218978102189781, 'fraction_numerical': 0.006440532417346501, 'mean_word_length': 3.5419103313840155, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '2426080', 'n_tokens_mistral': 824, 'n_tokens_neox': 808, 'n_words': 244}