AI agent learning shortest path through maze

版本 1.0.0 (11.3 KB) 作者: Lyes Demri
A very basic example of Reinforcement Learning.
26.0 次下载
更新时间 2022/9/2

查看许可证

This is a very basic example of Reinforcement Learning. I wrote it after reading "How to train your robot" by Craig Buhr. The .m files contain:
*MazeExplorer.m is a simple game where the user must find his/her way out of a very simple maze using the WASD keys
*RandomMazeExplorer.m shows an agent learning to find its way through the same maze.
*MazeExplorerKey.m is the same game as MazeExplorer except you have to find a key before heading towards the exit
*RandomMazeExplorerKey.m shows an agent trying to learn to find the key first before heading towards the exit. The agent fails to do so because it isn't even aware of having the key
*RandomMazeExplorerKeyAware.m shows an agent learning to find a key before heading towards the exit. The agent is now aware of the existence of the key.
I will include any additional information that shall be requested to me.

引用格式

Lyes Demri (2024). AI agent learning shortest path through maze (https://www.mathworks.com/matlabcentral/fileexchange/117085-ai-agent-learning-shortest-path-through-maze), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0