r/godot•
He_dd

Implemeting Reinforcement Learning in Godot

I implemented the "Q-Learning" in Godot to learn how this algorithm works.

The AI tries to find the "red box" on the maze, it's has a maximum of (16 * 16 * 10 = 2560) steps that it can make (basically walking on the maze and its steps are marked with the "yellow box") to complete the goal or be punished.

You can get the source code from here: https://github.com/MetlHedd/godot-qlearning

​

The Q-Learning on a 16x16 maze.

Posted May 12, 2020, 1:01 PM UTC

272
DavidWeirich•

This is amazing. I've been thinking about ways to do ML in Godot but haven't started yet. This is really inspiring!

2
He_ddOP•

Wow, glad to hear, thanks! Let me know when you start your projects!

1