Q-Learning with Swift
SwiftyQlearning is a Q-learning algorithm that find the exit path of a maze on iOS.
Preview
USAGE
SwiftyQLearning use a .txt file for maze information. User make three inputs that start room, exit room and iteration according to room size of maze. Algorithm succeed how big iteration is.
Input Style
There is a file called as input.txt in project documentary. When you click input.txt, format should be something like that:
You can make many variants of maze like this format.Output Style
After calculate, algorithm makes animation like see also there are three output file that showed file's paths in terminal after application run. These texts show rMatrix, qMatrix and path from start to end as conclusion.
License
SwiftyQLearning is distributed under the MIT license. See LICENSE for details.