Solving the Tower of Hanoi in Rust.

The Tower of Hanoi is a well-known combinatorial game. If you don’t know it yet, it doesn’t mind! In this post we are going to look at a mathematically defined version and write an algorithm that solves it in Rust.
Some basic knowledge of Rust is required to understand the code. You may find an easy introduction here.