Skip to content

NeuralCortex/Towers_Of_Hanoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOWERS OF HANOI (TÜRME VON HANOI) 1.0.0

image

Funktionsweise des Programms

Türme von Hanoi ist ein mathematisches Guduldsspiel das auf dem Teile- und Herrsche-Verfahren beruht.
Das Spiel besteht aus 3 Stapel, mit nach der Größe geordneten unterschiedlich großen Scheiben.
Ziel des Spiel ist es die Scheiben auf Stapel 1, auf Stapel 3 (also den rechten Stapel) umzuordnen.
Dabei dürfen nur die vorhandenen Stapel benutzt werden und es darf keine größere Scheibe auf einer kleineren liegen.

Das Programm verwendet einen rekursiven Algorithmus zur Lösung des Problems.
Auf der Rechten Seite des Programms befindet sich eine Tabelle mit allen nötigen Schritten zur Lösung.
Diese Lösung kann in eine CSV-Datei exportiert werden.

Es werden maximal 10 Scheiben unterstützt (1024 Schritte zur Lösung).

How the program works

Towers of Hanoi is a divide and conquer mathematical puzzle game.
The game consists of 3 stacks, with discs of different sizes ordered by size.
The aim of the game is to rearrange the discs from stack 1 to stack 3 (i.e. the stack on the right).
Only the existing stacks may be used and no larger disc may lie on top of a smaller one.

The program uses a recursive algorithm to solve the problem.
On the right side of the program there is a table with all the necessary steps to solve the problem.
This solution can be exported to a CSV file.

A maximum of 10 discs are supported (1024 steps to solve).

Verwendete Technologie

Dieses JavaFX-Projekt wurde erstellt mit der Apache NetBeans 17 IDE NetBeans 17.

Folgende Frameworks sollten installiert sein:

Technology used

This JavaFX project was built with the Apache NetBeans 17 IDE NetBeans 17.

The following frameworks should be installed: