Learn Recursion by Solving the Tower of Hanoi Puzzle - Step 43

Tell us what’s happening:

It says “You should delete the whole make_allowed_move function.”
This is all the code I have left and it still wont let me pass

NUMBER_OF_DISKS = 4
rods = {
‘A’: list(range(NUMBER_OF_DISKS, 0, -1)),
‘B’: ,
‘C’:
}

Your code so far


# User Editable Region

NUMBER_OF_DISKS = 4
rods = {
    'A': list(range(NUMBER_OF_DISKS, 0, -1)),
    'B': [],
    'C': []
}

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0

Challenge Information:

Learn Recursion by Solving the Tower of Hanoi Puzzle - Step 43

Hi @marcus.multiband

You won’t need make_allowed_move and number_of_moves , either. Delete the whole function and the variable.

You were not asked to delete the move function, or the move function call.

Happy coding