Q-learning in workable shape.