Implement Q-learning by Matlab.
Env
: the base class of Environment
Agent
: the base class of agents
QAgent
: the base class of agents for Q-learning
Recommended to inherit from QAgent
. See MyQAgent
as an example.
maze.m
story: a robot with 10 power tries to find its heaven that is far from it. It has to get the resource first! Come bro! Here we go.
note: the dashline is the direction of moving.
Tools for drawing.