Home▸Nature & Climate▸Temporal-Difference Learning on a Reef Corridor: Learned vs Exact Values (2D)

Temporal-Difference Learning on a Reef Corridor: Learned vs Exact Values (2D)

The same TD(0) learner in 2D: Blender coral sprites with learned value bars and exact value ticks, the learned and exact value curves, and the error history.

Nature & Climate2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Temporal-Difference Learning on a Reef Corridor: Learned vs Exact Values (2D) ↗ Open standalone

Watch a damselfish learn the value of every coral head on a corridor between a predator grotto and a feeding anemone using only temporal-difference updates after each hop. Set the current, number of heads, discount, hop cost and learning rate; compare the learned values with the exact Bellman solution and the gambler's-ruin closed form, and follow the RMS error. A Blender-built reef with checks against value iteration, Monte Carlo returns and decaying-rate TD.

⚙ Under the hood

The same TD(0) learner in 2D: Blender coral sprites with learned value bars and exact value ticks, the learned and exact value curves, and the error history.

Temporal Difference LearningBellman EquationReinforcement LearningRandom WalkValue FunctionReef

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)