Your Cart

JavaFX - Turnurile din Hanoi (functie recursiva)

On Sale
€6.99
€6.99
Added to cart

The program allows:

- The graphic visualization of solving Hanoi towers problem using a recursive function.

You can select:

- The number of disks,

- The delay time of animation.

It displays:

- The required moves,

- The minimum number of moves required

- The time animation.

It can: start, stop, continue and stop/ reset the animation.

 

Functioning

- Selecting an item from the combo box “Number of discs: ... “ will cause: the display of selected number of discs, displaying the minimum number of moves required and time animation on the adequate tags named "MINIMUM NUMBER OF NECESSARY MOVMENTS: ..." and "TIME ANIMATION: ... minutes ... seconds".

- Selecting an item from the combo box "Delays the movement ... seconds” leads to display the animated time on the label " TIME ANIMATION: ... minutes ... seconds ".

- Pressing the button 'START' leads to: generate forms (bases, rods and disks), turning animation on, displaying corresponding movements in TextArea, disabling ComboBox "Number of discs: ...", disabling ComboBox "Delays move ... seconds", disable the button "START", activation of the button "PAUSE", disabling "Continue" button and activate the button "STOP & RESET”.

- Pressing the button "PAUSE" will cause: to stop the animation, enabling "Continue" button and disable the button "PAUSE".

- Operating the "Continue" button leads to: continuing animation, activate the button "PAUSE" and disable the "Continue" button.

- Pressing the button "STOP & RESET" will cause: stopping the animation, delete forms (bases, rods and disks), initializing TextArea "Moving NEEDED:", initialization label 'The minimum MOVES REQUIRED: 7", initialize the label" TIME ANIMATION: 0 minutes and 7 seconds ", activation and initialization ComboBox" Number of discs: 3", activation and initialization ComboBox" Delays moving 1 second”,  activate “Start” button, disable the button "PAUSE", disabling "Continue" button and disable the button "STOP & RESET ".

 

You will get a JAR (9KB) file