Skip to content

kroune/hanoy-tower

Repository files navigation

This project provides a fast recursive way of finding an optimal solution to popular variants (any number of disks and rods) of the famous tower of Hanoi

All project is represented with

Position class

which

exposes methods

  • toString()
  • solveRecursivelyWithTimeMeasurement()
  • solveRecursively()
  • solveAtDepth()

Line class

which

exposes variables

  • hash

exposes methods

  • size()
  • pop()
  • push()
  • empty()
  • peek()
  • toString()
  • copy()

occurredPositions value

which exposes past move generation results