Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 22nd, 2011  |  syntax: Ruby  |  size: 0.42 KB  |  views: 110  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. def scoring(ans, timey, tf, n)
  2.   if tf=='t'
  3.     if ans=='y'
  4.       $score[n][0] += 1
  5.     end
  6.     $score[n][1] += timey
  7.   elsif tf=='f'
  8.     if ans=='n'
  9.       $score[n][0] += 1
  10.     end
  11.     $score[n][1] += timey
  12.   end
  13. end
  14.  
  15. def falsecatsub(j)
  16.         puts $questions[2]+$falsecat[j]
  17.   pause
  18.   clear_scrn
  19.   puts $target[j]
  20.   start = Time.now
  21.   inp = wait_for_yn
  22.   ends = Time.now
  23.   scoring(inp, (ends-start), 'f', j)
  24. end