Calculator for "Tower of Hanoi"-style backup rotation scheme
Timothy Rice ab96beb0cd Initial commit | 3 år sedan | |
---|---|---|
.gitignore | 3 år sedan | |
LICENSE | 3 år sedan | |
Makefile | 3 år sedan | |
README.md | 3 år sedan | |
hanoi.c | 3 år sedan | |
tests.sh | 3 år sedan |
https://en.wikipedia.org/wiki/Backup_rotation_scheme#Tower_of_Hanoi
$ hanoi -h
Usage: hanoi TAPES DAY
Calculator for 'Tower of Hanoi' daily backup rotation system.
Arguments:
TAPES = Total number of tapes available
DAY = Which day are we on in the cycle?
$ hanoi 1 3
1
$ hanoi 4 12
3
$ hanoi 4 18
2
$ hanoi 8 128
8