# Tower Hanoi (recursive) in Processing

**URL:** <https://discourse.processing.org/t/tower-hanoi-recursive-in-processing/28902>\
**Category:** Processing\
**Created:** [March 27, 2021, 1:57pm UTC](https://discourse.processing.org/t/tower-hanoi-recursive-in-processing/28902 "2021-03-27T13:57:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dyehuda](https://avatars.discourse-cdn.com/v4/letter/d/4da419/32.png) [@dyehuda](https://discourse.processing.org/u/dyehuda)\
**Post date:** [March 27, 2021, 1:57pm UTC](https://discourse.processing.org/t/tower-hanoi-recursive-in-processing/28902/1 "2021-03-27T13:57:47Z")

</div>

I wrote this recursive code for Hanoi tower, but it just draw the first and last position.  
I don’t understand why I cannot see each step

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

---

<div class="post-metadata">

**Author:** ![javagar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/javagar/32/11434_2.png) [@javagar](https://discourse.processing.org/u/javagar)\
**Post date:** [March 27, 2021, 2:23pm UTC](https://discourse.processing.org/t/tower-hanoi-recursive-in-processing/28902/2 "2021-03-27T14:23:19Z")

</div>

Hello, @dyehuda, and welcome to the Processing Forum!

Your code is not formatted for posting, so it is difficult to read and to copy for testing.

See [Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-asking-questions/2147) for information on formatting code for posting.
