Towers of Hanoi is a classic programming puzzle. Traditionally, there is a stack of discs, each smaller the the one below it, on the leftmost rod. The goal is to move all the disks to the rightmost rod, with the following rules:

I've implemented the puzzle, and a bunch of techniques to solve it.




Sandbox: Uses your input on the towers

Recursion: Uses the classic recursion technique

BFS: Uses a breadth-first search technique

DFS: Uses a depth-first search technique

Q-Learning: Uses a Q-learning technique