A learner sorts cards by one of three hidden rules and gets only right or wrong feedback. When the rule silently changes, the old habit keeps winning for a while. A Q-learning model with a softmax choice rule shows how the learning rate, the choice sharpness and the strength of the old habit set the number of perseverative errors and the trials to recover. A Blender-built sorting table animates a simulated learner; numerical checks of the model are included. Educational modelling, not a clinical test.