Changes

Jump to navigation Jump to search
m
Line 166: Line 166:  
;self._surrounding_dots((column, row)): returns an array of dots surrounding a given position in the grid
 
;self._surrounding_dots((column, row)): returns an array of dots surrounding a given position in the grid
 
;self._daylight_ahead((column, row)): returns True if there is a clear path to the edge heading in the current direction
 
;self._daylight_ahead((column, row)): returns True if there is a clear path to the edge heading in the current direction
:self._ordered_weights((column, row)): returns an array of surrounding dots ordered by their distance from the edge
+
;self._ordered_weights((column, row)): returns an array of surrounding dots ordered by their distance from the edge
 
;self._dots: the array of dots from which you can test the type attribute (self._dots[i].type==None → edge; self._dots[i].type==False → open; self._dots[i].type==True → blocked)
 
;self._dots: the array of dots from which you can test the type attribute (self._dots[i].type==None → edge; self._dots[i].type==False → open; self._dots[i].type==True → blocked)
 
;self._orientation:you can set the orientation of your turtle by assigning a number from 0-5 (clockwise beginning with 30 degrees from north)
 
;self._orientation:you can set the orientation of your turtle by assigning a number from 0-5 (clockwise beginning with 30 degrees from north)

Navigation menu