Project: Tower of Hanoi
The [[Tower of Hanoi]] is a puzzle played with disks and pegs. The idea is to move a tower of disks from one peg to another subject to certain restrictions:
- Only one disk can be moved at a time
- Each move consists of taking the upper disk from one of the pegs and placing it on top of another stack or on an empty peg
- A larger disk can not be placed on a smaller disk
See [[Tower of Hanoi Algorithm]] See [[Tower of Hanoi Animation]]
Output
$ g++ -std=c++17 TowerOfHanoi.cpp -o TowerOfHanoi -lfmt
ld: Undefined symbols:
_main, referenced from:
<initial-undefines>
clang: error: linker command failed with exit code 1 (use -v to see invocation)
$ g++ -std=c++17 TowerOfHanoi.cpp -o TowerOfHanoi -lfmt
ld: Undefined symbols:
_main, referenced from:
<initial-undefines>
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Pure Programmer

