Skip to content

Instantly share code, notes, and snippets.

@paractmol
Created September 22, 2018 09:23
Show Gist options
  • Save paractmol/02627c4d09e4361dd3025096478dfe0e to your computer and use it in GitHub Desktop.
Save paractmol/02627c4d09e4361dd3025096478dfe0e to your computer and use it in GitHub Desktop.
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