Thanks for the help everyone!
Last edited on
Thanks dude! You are a life saver :D
.
Last edited on
Note: You have a recursive function. You could have a while loop instead of recursion. Iteration suits this task better.
Why does your while-loop call the play() twice? The second call does not even store the return value. That call seems utterly useless.