Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2011
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.42 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement