Skip navigation

tsobi is comes from a Ghanaian language called ‘Ga’. It means doll or more so ‘stick child’ like pinnochio

look at an implementation in Ruby to produce ‘tsobi’ :-) .

Author : Selasie Agbavor

Date : 25/10/08

source : tsobi.rb

# souce code

def tsobi_1
puts ‘  0   ‘
puts ‘  .   ‘
puts ‘/ . \ ‘
puts ‘ / \  ‘
end

def tsobi_2
puts ‘  0  ‘
puts ‘\ . /’
puts ‘  .  ‘
puts ‘ / \ ‘
end

def jump(time)
loop do
tsobi_1
sleep time
system ‘cls’
sleep time
tsobi_2
sleep time
system ‘cls’
sleep time
system ‘cls’
end
end

jump 0.5

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.