def set_orientation(ant,side): orientation = ant.get_orientation() ant.set_orientation((orientation + side) % 4) ant.set_radius()
def force_orientation(ant,side): orientation = ant.get_orientation() ant.set_orientation(side) ant.set_radius()