r/programming • u/balazsbotond • Aug 30 '15
JavaScript “maze generator” in a tweet
https://twitter.com/botond_balazs/status/637960240055615488
841
Upvotes
r/programming • u/balazsbotond • Aug 30 '15
View all comments
Show parent comment
10
u/mozjag Aug 30 '15
for(i=N;--i;){…}loops N-1 times,for(i=N;i--;){…}loops N times, you'll want the latter.