Skip to content

Implementation of "Towers of Hanoi" game solver, in Rustlang

Notifications You must be signed in to change notification settings

binocvlar/Rustlang-Towers-of-Hanoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rustlang-Towers-of-Hanoi

Implementation of "Towers of Hanoi" game solver, in Rustlang

Purpose

The purpose of this program is twofold:

  1. As a first project using Rust-lang
  2. As a final project for edX/Harvard CS50

Here be dragons...

As this is my first proper project in rust, I'm probably making a lot of mistakes here.

Several times throughout this project, I found myself unable to do things in my usual (Pythonic) manner. Being constrained by the borrow checker (for my own safety :)) has lead to some sections of the code being less efficient and/or less readable than I would have liked.

Future improvements

Given that we know that completion time is on the order of (2**n - 1), I could take a user issued sleep time, and provide an estimated time to completion. Perhaps even a count-down timer and/or progress bar?

Author

Richard P binocvlar@gmail.com

About

Implementation of "Towers of Hanoi" game solver, in Rustlang

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages