For Students · Q-Learning Gridworld
Q-Learning Gridworld for a maze solver
Built for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition. Simulate a maze solver live below — adjust the inputs and watch it respond, right in your browser.
Q-Learning GridworldLive
learning to reach a goal
Controls
Presets
Reinforcement learning finds a policy — an arrow in every cell — that maximizes long-term reward. A high discount γ makes the agent value the distant goal; a costlier step reward pushes it to take the shortest path. The colors show each cell's learned value. Educational tool.
Data Inspector
Discount γ0.90
Start-cell value0.09
Behaviorcautious path
Governing equation
Reading this result: With γ=0.9 and a mild step reward, the agent balances path length against reaching the goal, favoring a steady route.
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
Also for:ResearchersEducatorsEngineersHobbyists & MakersK-12 StudentsFirst RespondersGeneral version →
More with Q-Learning Gridworld
Q-Learning Gridworld for a neural networkQ-Learning Gridworld for a sorting algorithmQ-Learning Gridworld for a search treeQ-Learning Gridworld for a hash tableQ-Learning Gridworld for a recommendation engineQ-Learning Gridworld for an image classifierQ-Learning Gridworld for a chatbotQ-Learning Gridworld for a pathfinding AI
Frequently asked questions
- Is this good for students?
- Yes — this version of "Q-Learning Gridworld for a maze solver" is framed for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition.
- Do I need to install anything?
- No. It runs in any modern browser, free, with no account required.