Changes

Line 41: Line 41:  
def _turtle_strategy(self, turtle):
 
def _turtle_strategy(self, turtle):
 
     turtle[1] +=1
 
     turtle[1] +=1
 +
    return turtle
 +
</pre>
 +
 +
In this version, the turtle moves down until it is blocked.
 +
<pre>
 +
def _turtle_strategy(self, turtle):
 +
    if not self._dots[self._grid_to_dot((turtle[0], turtle[1]+1))].type:
 +
      turtle[1] +=1
 
     return turtle
 
     return turtle
 
</pre>
 
</pre>
2,486

edits