r/tinycode • mod • Jul 21 '11

Snake in 11 lines of Ruby

https://gist.github.com/1098494
13 Upvotes

4 comments sorted by

2

u/nexe mod Jul 21 '11

Just refactored http://www.reddit.com/r/tinycode/comments/ivb2h/ruby_snake_in_9_lines_of_code/ though. Yes the variable names are a bit obfuscated but most of the logic is more rubyish and cleaner now.

4

u/boneklinkz Jul 22 '11

stretch to call that 11 lines. if someone checked that in a my work they would probably be hung.

3

u/nexe mod Jul 23 '11

wow you guys know how to have fun at work don't you? ;)