DanijelAskov / towers-of-hanoi

An interactive 3D JavaFX application visualizing the process of solving the Towers of Hanoi puzzle.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TowersOfHanoi

CodeFactor Build with Gradle

Gameplay demonstration

Short application description

An interactive 3D JavaFX application which visualizes the process of solving the Towers of Hanoi puzzle.

Setup

This project uses Gradle. Open command-line interpreter and simply run gradlew run (Windows) or ./gradlew run (macOS and Linux) to launch the application.

Features

Settings tab provides the user with different ways of customizing the appearance of the puzzle. One can define:

  • Number of disks (3-10), i. e. puzzle difficulty
  • Material
  • Light color etc.

Two solving modes are available:

  • Interactive solving by the user. Disks and rods are selected using the primary mouse button.
  • Animated step-by-step solving by the computer (demonstration mode). Animation speed can be fine-tuned. Animation can be paused and stopped.

No matter what mode of interaction is chosen, it is always possible to position the camera around the puzzle board by mouse dragging, and to control the distance between camera and the puzzle (i.e. zoom in/zoom out) by mouse scrolling.

Maps

Diffuse, normal (bump) and specularity maps which were used in this project can be found here.

Note to the reader of this README

If you have any question, suggestion or collaboration offer, please feel free to contact me. If you find this repository useful, please consider starring it!

About

An interactive 3D JavaFX application visualizing the process of solving the Towers of Hanoi puzzle.

License:GNU General Public License v3.0


Languages

Language:Java 100.0%