An open API service indexing awesome lists of open source software.

https://github.com/neuralcortex/towers_of_hanoi_react

Graphical solution to solve the Towers Of Hanoi problem
https://github.com/neuralcortex/towers_of_hanoi_react

csv-export javascript react tower-of-hanoi towers-of-hanoi w3schools webapp

Last synced: 16 days ago
JSON representation

Graphical solution to solve the Towers Of Hanoi problem

Awesome Lists containing this project

README

          

# Towers of Hanoi React 1.0.0

![Towers of Hanoi App](https://github.com/NeuralCortex/Towers_Of_Hanoi_React/blob/main/app.png)

## Overview

Towers of Hanoi is a mathematical puzzle game based on a divide-and-conquer approach. The game consists of three stacks with discs of varying sizes arranged in ascending order. The objective is to move all discs from Stack 1 to Stack 3 (the rightmost stack) while adhering to the following rules:

- Only the provided stacks may be used.
- No larger disc can be placed on top of a smaller disc.

The program uses a recursive algorithm to solve the puzzle. A table on the right side of the interface displays all necessary steps to complete the solution, which can be exported as a CSV file. The program supports up to 10 discs, requiring 1023 steps to solve.

## Installation and Setup

To run the web app, follow these steps:

1. Install [Node.js](https://nodejs.org).
2. Clone this repository or download the project files.
3. Navigate to the project's main directory in your terminal.
4. Run `npm install` and wait for the installation to complete.
5. Run `npm start` to launch the app in development mode, or
6. Run `npm run build` to create a production-ready build.

## Technologies Used

This web app was created using [Create React App](https://github.com/facebook/create-react-app). The following tools were used:

- [Visual Studio Code](https://code.visualstudio.com/)
- [Node.js](https://nodejs.org)
- [Google Chrome](https://www.google.com/chrome/)

## Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). For more information on available scripts and customization, refer to the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).