Skip to content

Instantly share code, notes, and snippets.

@waj
Created August 28, 2012 02:49
Show Gist options
  • Save waj/3494492 to your computer and use it in GitHub Desktop.
Save waj/3494492 to your computer and use it in GitHub Desktop.
Learn Japanese Numbers
loop do
x = rand(999)
y = loop do
`say -r 150 -v Kyoko #{x}`
y = gets.to_i
break y unless y == 0
end
if x == y
puts ":-)"
else
puts "NO! #{x}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment