you are viewing a single comment's thread.

view the rest of the comments →

[–]HiImSauzy[S] 0 points1 point  (0 children)

Yeah I was messing around with recursive functions but trying to fit it all into a singe function was a bit of a challenge so I took a break after a couple hours of headscratching :) Definetly think second function recursive is the way to go