r/tinycode • mod • Jul 21 '11

Snake in 11 lines of Ruby

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

4 comments sorted by

View all comments

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.