ryanb / ruby-warrior

Game written in Ruby for learning Ruby.
MIT License
3.83k stars 838 forks source link

Provide useful error message when given invalid direction #26

Closed ryanb closed 14 years ago

ryanb commented 14 years ago

A useful error message should be provided if one provides :backwards instead of :backward as the direction. Something to this extent:

Unknown direction :backwards. It should be :forward, :left, :right, or :backward.
ryanb commented 14 years ago

This has been added, it will now complain if a direction is given which doesn't match the four expected.