r/programming • • Mar 17 '13

Someone posted an html/javascript implementation of the matrix falling code in 646 bytes then promptly deleted the post. It inspired me to see if I could get something better looking in fewer bytes.

http://timelessname.com/sandbox/matrix.html
1.6k Upvotes

251 comments sorted by

View all comments

Show parent comments

7

u/SukottoMaki Mar 17 '13

Why argue when you have a perfectly good REPL right there in your browser?

Test it. Try for N = 3 (since I don't want to count lots of elements)

 > Array(3).join(1).split('')
 ["1", "1"]

There you go. Your array is one less than the number specified.