https://github.com/bzdgn/tower-of-hanoi-demo
Tower Of Hanoi Demonstration WIth Java and Custom Stack Implementation For Pegs
https://github.com/bzdgn/tower-of-hanoi-demo
data-structures data-structures-algorithms java recursive recursive-algorithm stack tower-of-hanoi
Last synced: 26 days ago
JSON representation
Tower Of Hanoi Demonstration WIth Java and Custom Stack Implementation For Pegs
- Host: GitHub
- URL: https://github.com/bzdgn/tower-of-hanoi-demo
- Owner: bzdgn
- Created: 2017-06-06T08:38:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-06T08:56:22.000Z (almost 8 years ago)
- Last Synced: 2025-02-03T09:47:46.990Z (3 months ago)
- Topics: data-structures, data-structures-algorithms, java, recursive, recursive-algorithm, stack, tower-of-hanoi
- Language: Java
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Demonstrates Tower Of Hanoi in Java
com.levent.pegstack Package;
Has a custom stack implementation for Pegs
com.levent.towerofhanoi
Implementation of Tower Of Hanoi and Demonstration code
Sample Output;
**************
```
|: 5 4 3 2 1
|:
|:Count: 1
|: 5 4 3 2
|:
|: 1Count: 2
|: 5 4 3
|: 2
|: 1Count: 3
|: 5 4 3
|: 2 1
|:Count: 4
|: 5 4
|: 2 1
|: 3Count: 5
|: 5 4 1
|: 2
|: 3Count: 6
|: 5 4 1
|:
|: 3 2Count: 7
|: 5 4
|:
|: 3 2 1Count: 8
|: 5
|: 4
|: 3 2 1Count: 9
|: 5
|: 4 1
|: 3 2Count: 10
|: 5 2
|: 4 1
|: 3Count: 11
|: 5 2 1
|: 4
|: 3Count: 12
|: 5 2 1
|: 4 3
|:Count: 13
|: 5 2
|: 4 3
|: 1Count: 14
|: 5
|: 4 3 2
|: 1Count: 15
|: 5
|: 4 3 2 1
|:Count: 16
|:
|: 4 3 2 1
|: 5Count: 17
|: 1
|: 4 3 2
|: 5Count: 18
|: 1
|: 4 3
|: 5 2Count: 19
|:
|: 4 3
|: 5 2 1Count: 20
|: 3
|: 4
|: 5 2 1Count: 21
|: 3
|: 4 1
|: 5 2Count: 22
|: 3 2
|: 4 1
|: 5Count: 23
|: 3 2 1
|: 4
|: 5Count: 24
|: 3 2 1
|:
|: 5 4Count: 25
|: 3 2
|:
|: 5 4 1Count: 26
|: 3
|: 2
|: 5 4 1Count: 27
|: 3
|: 2 1
|: 5 4Count: 28
|:
|: 2 1
|: 5 4 3Count: 29
|: 1
|: 2
|: 5 4 3Count: 30
|: 1
|:
|: 5 4 3 2Count: 31
|:
|:
|: 5 4 3 2 1|:
|:
|: 5 4 3 2 1
```