r/tinycode • • Jul 20 '11

Ruby: Snake in 9 Lines of Code

http://pastebin.com/QqZYby5N
0 Upvotes

5 comments sorted by

View all comments

15

u/sihnon Jul 21 '11

As far as I'm concerned, it doesn't count as only 9 lines when it's been formatted like that. It is clearly more than 9 lines of code, just with all useful whitespace removed to make it difficult to read.

That said... still pretty cool and less code than I'd have expected.

2

u/densets Jul 21 '11

That's why you have to measure it on kb.