Skip to content

A solver for the Tower of Hanoi problem implemented in C# with Recursion and Iteration. Developed in the course "C-Sharp Development" during the 4th semester of Creative Computing at the University of Applied Sciences St. Pölten (USTP).

Notifications You must be signed in to change notification settings

frvnzz/TowerOfHanoi-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TowerOfHanoi Solver

The objective of the Tower of Hanoi game is to move a given amount of disks from Tower 1 over to Tower 3. The challenge of the game is, that you cannot place a larger disk onto a smaller one.

About The Project

This project is a solver for the Tower of Hanoi problem implemented in C#. The program uses two different approaches that the user can specify when running it:

  • Recursive Approach
  • Iterative Approach

Built With

  • C#
  • .NET 8.0 SDK for development and execution/compilation

Getting Started

To get started with the Tower of Hanoi Solver, follow the steps below to install and run the program.

Prerequisites

Before running the program, ensure that you have the following installed:

Installation and Execution

  1. Clone the repository or download the source code from here:

    git clone https://github.com/frvnzz/TowerOfHanoi-Solver.git
    cd TowerOfHanoi-Solver
  2. Run the program using one of the following commands:

    Recursive Approach:
    dotnet run -Recursive <number_of_disks>, e.g.:

    dotnet run -Recursive 3

    Iterative Approach:
    dotnet run -Iterative <number_of_disks>, e.g.:

    dotnet run -Iterative 2

Licence

Distributed under the Unlicense License. See /docs/LICENSE.txt for more information.

Contact

Franz-Aurel Huber – cc231014@fhstp.ac.at

Acknowledgments

Tower of Hanoi Animation
/docs/Tower_Of_Hanoi.gif
Source: Wikimedia Commons, licensed under Creative Commons Attribution-Share Alike 3.0 Unported.

About

A solver for the Tower of Hanoi problem implemented in C# with Recursion and Iteration. Developed in the course "C-Sharp Development" during the 4th semester of Creative Computing at the University of Applied Sciences St. Pölten (USTP).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages