Module: CheckingMethods

Defined in:
lib/helper_tools/checking_methods.rb

Instance Method Summary collapse

Instance Method Details

#moved_to_a_valid_square?Boolean

Returns:

  • (Boolean)


2
3
4
# 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?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/helper_tools/checking_methods.rb', line 6

def win?
  current_square_on_map == target
end