|
@@ -1,3 +1,17 @@
|
|
|
|
|
|
|
|
+DIRECTIONS = ['N', 'E', 'S', 'W']
|
|
|
|
+
|
|
|
|
+class Location:
|
|
|
|
+
|
|
|
|
+ def __init__(self, x, y, direction):
|
|
|
|
+ self.x = x
|
|
|
|
+ self.y = y
|
|
|
|
+ self.direction = direction
|
|
|
|
+
|
|
|
|
+
|
|
class Rover:
|
|
class Rover:
|
|
- pass
|
|
|
|
|
|
+
|
|
|
|
+ def __init__(self):
|
|
|
|
+ self.location = Location(2, 7, 'E')
|
|
|
|
+ self.location.x = 2
|
|
|
|
+ self.location.y = 7
|