def scoring(ans, timey, tf, n) if tf=='t' if ans=='y' $score[n][0] += 1 end $score[n][1] += timey elsif tf=='f' if ans=='n' $score[n][0] += 1 end $score[n][1] += timey end end def falsecatsub(j) puts $questions[2]+$falsecat[j] pause clear_scrn puts $target[j] start = Time.now inp = wait_for_yn ends = Time.now scoring(inp, (ends-start), 'f', j) end