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
$ swiftc TowerOfHanoi.swift -I . -L . -lUtils
error: link command failed with exit code 1 (use -v to see invocation)
ld: library not found for -lUtils
clang: error: linker command failed with exit code 1 (use -v to see invocation)
$ swiftc TowerOfHanoi.swift -I . -L . -lUtils
error: link command failed with exit code 1 (use -v to see invocation)
ld: library not found for -lUtils
clang: error: linker command failed with exit code 1 (use -v to see invocation)