I implemented the episodic Q-Learning algorithm and I want to stop the experiment in progress (by lua code) when the footbot reaches the goal state (checked by goal test). It is useful because I run multiple experiments automatically using a bash script.
So, I want to call the destroy() function inside the step() function. Is it possible?