tiny-quiz-game
by Mauno Vähä
JavaScript
// Created by Mauno Vähä (twitter.com/maunovaha)
//
// See: https://github.com/maunovaha/tiny-quiz-game for details
d=Date.now;t=5;n=o=0;while(n<t){f=s=(''+d())[12]++;f=f+3*2;c=f+s+'';o+=prompt(f+'+'+s)==c?1:0;n++}alert('Score '+o+'/'+t)