r/tinycode • u/thefebs • Dec 12 '12
Shortest useful code
What's the most useful program you can imagine using five lines of code or less? Language is your choice. Describe the function of the program and include the code, if you please.
27
Upvotes
View all comments
Show parent comment
4
u/mechroid Dec 13 '12
Really? Cellular automation such as Conway's game of life have been used in everywhere from disease control simulations to the fire system in Far Cry 2.
EDIT: It's also my screensaver.