A Tiny Q-learning Example in Python

I wanted to get a better sense of the temporal-difference update rule. So took some help from Claude and wrote a small Q-learning program. Just uses the python stdlib. The code lives in q-learning, managed with uv. ...

June 29, 2026 · 2 min · Bharath