1

I created a tower of Hanoi code using python. Now, I want to visualize the steps after running the code. For example, when my code prints 'Move from A to C', one disc will move from Stack A to Stack C. Then next maybe B to C. I want to visualize the steps using some python code. I know it can be done using R shiny, but I have to do it using python only. Does anyone have any idea what are the possible options for this.

1 Answer 1

1

To solve the interactive part you have a few tools available. Bowtie and Dash are tools like Shiny for Python (disclaimer I wrote Bowtie). You could also do this with Jupyter Notebooks using widgets.

For the visualization, the standard tool is matplotlib.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.