1
2
3
Click the peg numbers to solve manually.
Or write javascript code below and click eval.
Add disk

//number of disks in the game
var n = get_n_of_disks();
//moves the top disk from peg 1 to peg 3 (if possible)
move(1, 3);

I have no time for this! Give me a solution!!

reset