Safe Haskell | None |
---|---|
Language | Haskell98 |
Extras.Game.Hanoi
Documentation
solve :: (Number, Number) -> Effect #
solve(pegs,discs)
solves the Tower of Hanoi puzzle
for the given numbers of pegs
and discs
move :: (Number, Number) -> Move #
A move represents the action of moving a disc from the given source peg to the given destination peg