Changes

Jump to navigation Jump to search
Line 69: Line 69:  
  def _turtle_strategy(self, turtle):
 
  def _turtle_strategy(self, turtle):
   −
The turtle argument is a tuple containing the column and row of the current turtle position.
+
The turtle argument is a tuple containing the column and row of the current turtle position. That is, turtle[0] is the horizontal position and turtle[1] is the vertical position.
    
Your strategy should return a tuple containing the column and row of the new turtle position, e.g.,
 
Your strategy should return a tuple containing the column and row of the new turtle position, e.g.,
Line 77: Line 77:  
There are some resources that you can use in your program, including:
 
There are some resources that you can use in your program, including:
   −
;CIRCLE: an array of offsets that can used to find the col and row of the dots surrounding the turtle.
+
;CIRCLE: a 2x6x2 array of offsets that can used to find the col and row of the dots surrounding the turtle.
 
;self._dots: the array of dots.
 
;self._dots: the array of dots.
 
;self._pressed: the index of the most recent dot pressed by the user
 
;self._pressed: the index of the most recent dot pressed by the user
2,486

edits

Navigation menu