Jun 27, 2009

Conway's Game of Life on your iPhone

You can try Conway's Game of Life on your iPhone.
It's some kind of artificial life simulation.

Life for iPhone (iTunes)







Life for iPhone (iTunes)

You will be able to keep seeing its mysterious pattern.

Jun 16, 2009

Fibonacci in Ruby

a method for Fibonacci number:

def fib(n)
if n < 2
1
else
fib(n - 2) + fib(n - 1)
end
end


result:

puts fib(10) #=> 89

Jun 12, 2009

I came back!

I'll write in this blog again.


class Programmer
def says(message)
puts message
end
end

shunsuk = Programmer.new
shunsuk.says "I came back!"