Guest User

Untitled

a guest
Nov 13th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. {
  2. 0: S
  3. 1: E
  4. 2: N
  5. 3: W
  6. }
  7.  
  8. # Models the Robor behavior for the game
  9. class Robot
  10.  
  11. def initialize(attr = {})
  12. # @position = attr[:position]
  13. # @move = attr[:move]
  14. @facing = :south
  15. # @turn_left =
  16. # @turn_right =
  17. # @errors =
  18. end
  19.  
  20. def position
  21. end
  22.  
  23. def move
  24. end
  25.  
  26. def facing
  27. @facing
  28. end
  29.  
  30. def turn_left
  31.  
  32. end
  33.  
  34. def turn_right
  35. end
  36.  
  37. def errors
  38. end
  39. end
Add Comment
Please, Sign In to add comment