--- title: Towers of Hanoi id: 5951ed8945deab770972ae56 challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof towerOfHanoi === "function", "towerOfHanoi is a function.");' - text: '' testString: 'assert(res3.length === 7, "towerOfHanoi(3, ...) should return 7 moves.");' - text: '' testString: 'assert.deepEqual(towerOfHanoi(3, "A", "B", "C"), res3Moves, "towerOfHanoi(3, "A", "B", "C") should return [["A","B"],["A","C"],["B","C"],["A","B"],["C","A"],["C","B"],["A","B"]].");' - text: '' testString: 'assert.deepEqual(res5[9], ["Y", "X"], "towerOfHanoi(5, "X", "Y", "Z") 10th move should be Y -> X.");' - text: '' testString: 'assert.deepEqual(towerOfHanoi(7, "A", "B", "C").slice(0, 10), res7First10Moves, "towerOfHanoi(7, "A", "B", "C") first ten moves are [["A","B"],["A","C"],["B","C"],["A","B"],["C","A"],["C","B"],["A","B"],["A","C"],["B","C"],["B","A"]].");' ```
## Challenge Seed
```js function towerOfHanoi (n, a, b, c) { // Good luck! return [[]]; } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```