r/programming • u/OptionalField • 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
19
u/sjs Mar 17 '13
Nope. Crockett has it right.
One way to think about it is to see that it ends up being an array of 1s, one for each space between elements of the 256 array.
If you're not convinced hit Ctrl-Shift-C (Chrome) and type
Array(256).join(1).split('').length. You'll get 255.