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
272