An open API service indexing awesome lists of open source software.

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

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
|:
|: 1

Count: 2
|: 5 4 3
|: 2
|: 1

Count: 3
|: 5 4 3
|: 2 1
|:

Count: 4
|: 5 4
|: 2 1
|: 3

Count: 5
|: 5 4 1
|: 2
|: 3

Count: 6
|: 5 4 1
|:
|: 3 2

Count: 7
|: 5 4
|:
|: 3 2 1

Count: 8
|: 5
|: 4
|: 3 2 1

Count: 9
|: 5
|: 4 1
|: 3 2

Count: 10
|: 5 2
|: 4 1
|: 3

Count: 11
|: 5 2 1
|: 4
|: 3

Count: 12
|: 5 2 1
|: 4 3
|:

Count: 13
|: 5 2
|: 4 3
|: 1

Count: 14
|: 5
|: 4 3 2
|: 1

Count: 15
|: 5
|: 4 3 2 1
|:

Count: 16
|:
|: 4 3 2 1
|: 5

Count: 17
|: 1
|: 4 3 2
|: 5

Count: 18
|: 1
|: 4 3
|: 5 2

Count: 19
|:
|: 4 3
|: 5 2 1

Count: 20
|: 3
|: 4
|: 5 2 1

Count: 21
|: 3
|: 4 1
|: 5 2

Count: 22
|: 3 2
|: 4 1
|: 5

Count: 23
|: 3 2 1
|: 4
|: 5

Count: 24
|: 3 2 1
|:
|: 5 4

Count: 25
|: 3 2
|:
|: 5 4 1

Count: 26
|: 3
|: 2
|: 5 4 1

Count: 27
|: 3
|: 2 1
|: 5 4

Count: 28
|:
|: 2 1
|: 5 4 3

Count: 29
|: 1
|: 2
|: 5 4 3

Count: 30
|: 1
|:
|: 5 4 3 2

Count: 31
|:
|:
|: 5 4 3 2 1

|:
|:
|: 5 4 3 2 1
```