Created
September 22, 2018 09:23
-
-
Save paractmol/02627c4d09e4361dd3025096478dfe0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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