A little program simulating recursion graphically.
- Y Button to call the function
- X Button to finish ( go back ) a function call.
It is only a simulation. So it should not be possible to go back and forth but I had to stop the calls and thought it would be funny to have some control during the process.
It prints zero twice simply because I set up the order of operations incorrectly.
Also yes, ~= == !=, except that != doesn't exist in standard lua.
All flip() does it draw the contents of the back buffer to the screen. It's used to manually update the screen, but here I use it to slow things down.
[Please log in to post a comment]