module CheckingMethods

Public Instance Methods

moved_to_a_valid_square?() click to toggle source
# File lib/helper_tools/checking_methods.rb, line 2
def moved_to_a_valid_square?
  %w{▒ ╔ ═ ╗ ╝ ╚ ║}.none? { |character| current_square_on_map.include?(character) }
end
win?() click to toggle source
# File lib/helper_tools/checking_methods.rb, line 6
def win?
  current_square_on_map == target
end

Private Instance Methods

current_square_on_map() click to toggle source
# File lib/helper_tools/checking_methods.rb, line 12
def current_square_on_map
  map[current_square[0]][current_square[1]]
end