case @face | |
when 'N' | |
@y += 1 | |
when 'S' | |
@y -= 1 | |
when 'E' | |
@x += 1 | |
when 'W' | |
@x -= 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
case @face | |
when 'N' | |
@y += 1 | |
when 'S' | |
@y -= 1 | |
when 'E' | |
@x += 1 | |
when 'W' | |
@x -= 1 | |
end |