Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- 0: S
- 1: E
- 2: N
- 3: W
- }
- # Models the Robor behavior for the game
- class Robot
- def initialize(attr = {})
- # @position = attr[:position]
- # @move = attr[:move]
- @facing = :south
- # @turn_left =
- # @turn_right =
- # @errors =
- end
- def position
- end
- def move
- end
- def facing
- @facing
- end
- def turn_left
- end
- def turn_right
- end
- def errors
- end
- end
Add Comment
Please, Sign In to add comment