Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class RoverProblem
DIRECTIONS = %w(N E S W).freeze
attr_reader :face, :x, :y
def initialize(max_x, max_y)
@x = 0
@y = 0
@max_x = max_x.to_i
@max_y = max_y.to_i
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.