Reinforcement Learning Lab

Eight reinforcement-learning labs: classical, deep, policy optimisation, bandits, planning and multi-agent, with experiments trained for real in your browser.

39interactive experiments

Cliff Walking

A 4×12 grid with a cliff; the classic Sutton & Barto setting for comparing Q-learning with SARSA.

Environments library · Implemented and tested Beginner

Goal

Reach the goal without falling off the cliff.

State space

Cell index

Action space

Four moves

Reward function

-1 per step, -100 for falling

Success conditions

Reaching the goal

Failure / termination conditions

Reaching the goal or the step limit

How it was tested

The transition dynamics are compared with Gymnasium.

Suitable algorithms

Interactive experiment

Q-learning vs SARSA on the cliff