Help with Chess

How do i get help on an exercism? For example… On the Crystal-lang track, I am trying the “Chess” exercise.

My code is:


module Chess
  # the 'RANKS' constant
  RANKS = Range.new(1,8,true)
  # the 'FILES' constant
  FILES = Range.new('A','H',true)

  def self.valid_square?(rank, file)
    RANKS.includes?(rank) && FILES.includes?(file)
  end

  def self.nickname(first_name, last_name)
    (first_name[0..1] + last_name[-2..-1]).upcase
  end

  def self.move_message(first_name, last_name, square)
    nn = nickname(first_name,last_name)
    sq_valid = valid_square?(square[0], square[1])
    if sq_valid
      "#{nn} moved to #{square}"
    else
      "#{nn} attempted to move to #{square}, but that is not a valid square"
    end
  end
end

I am getting this error:


We received the following error when we ran your code:

Showing last frame. Use --error-trace for full trace.

In /usr/share/crystal/src/range.cr:280:35

 280 | (begin_value.nil? || value >= begin_value) &&
                                     ^----------
Error: expected argument #1 to 'Char#>=' to be Char, not Int32

Overloads are:
 - Char#>=(other : Char)
 - Comparable(T)#>=(other : T)

It seems to work just fine locally, but I don’t have the test code to confirm. UGH!!! Your help is appreciated!

When you say it’s working locally, what does that mean? How are you checking that the code works? If you downloaded the solution through the Exercism CLI, you should have the test suite downloaded as well, but your post is indicating you don’t have that file.