Enable the editor, then click or drag across maze cells.
Click an open maze cell to inspect its learned action values and policy.
| Action | Q-value | Policy |
|---|---|---|
| Select a state. | ||
| Time | Algorithm | Maze | Success | Best | Score |
|---|---|---|---|---|---|
| No saved experiments. | |||||
- The agent observes its current maze cell as a state.
- It chooses an action through exploration or exploitation.
- The environment returns a reward and next state.
- The selected algorithm updates an action value.
- Repeated episodes gradually produce a stronger policy.
Exploration versus exploitation
Exploration tries uncertain actions. Exploitation chooses the strongest learned action. Epsilon controls their balance.
Q-learning and SARSA
Q-learning learns toward the best possible next action. SARSA learns from the next action actually selected.
Reward design
Large exit rewards encourage completion. Step penalties encourage shorter routes. Excessive trap penalties can reduce useful exploration.