## Special Case 7, with a single bit; terminate at center
## TODO: for the future, this should rather check whether the movement is allowed in a single direction or both, as per the transitions bits. Here we only check for Case 7 as a cheap hack that will hold for the competition, but it won't hold for environments specified by arbitrary transitions.
# Special Case 7, with a single bit; terminate at center
nbits=0
tmp=trans_
whiletmp>0:
nbits+=(tmp&1)
whiletmp>0:
nbits+=(tmp&1)
tmp=tmp>>1
# as above - move the from coord to the centre - it's a dead env.
ifnbits==1:
# as above - move the from coord to the centre
# it's a dead env.
ifnbits==1:
from_xy=((x0+x1)/2.0,(y0+y1)/2.0)
#renderer.push()
#renderer.translate(c * CELL_PIXELS, r * CELL_PIXELS)
# renderer.push()
# renderer.translate(c * CELL_PIXELS, r * CELL_PIXELS)