In 13 mins - <a href="http://jsfiddle.net/jtR9E/" rel="nofollow">http://jsfiddle.net/jtR9E/</a>
Found this task pretty interesting, of course i used random, cause that's a normal think i guess.
This test tells the company, the following things about you:
1) How do you do in a stressed situation;
2) What is the code quality you write;
3) What you're trying to do first, functionality or beauty.<p>In the beginning a had no idea what should I do, so I found it quite complicated, but then after a bit of thinking this was quite easy .<p>Well yes in order to make it more animated I think this should have a different approach.
After 15 minutes - <a href="http://jsfiddle.net/NSdyg/" rel="nofollow">http://jsfiddle.net/NSdyg/</a>
Another 5 to make it work (almost) - <a href="http://jsfiddle.net/NSdyg/1/" rel="nofollow">http://jsfiddle.net/NSdyg/1/</a><p>I don't do much JS (as you can likely tell) but found the task approachable. I think that the low barrier to entry is a good thing for an interview question.<p>My approach is described in the comments. I started by writing it out and then went from there.
s/shellgame/cardflipgame<p>So. I took the exercise in a different direction. I thought of game of shells and my mind got stuck on the card flip matching game, so that's what I went with. I spent most of my time worrying about how much time had gone by, which wasn't helpful, but I think it came together.<p>I think the idea of this is great, and I may use a deviation of it for future pre-hire peer reviews.
dunno how to post anonymously because the jsfiddle url contains my user name :(<p><a href="http://jsfiddle.net/wanhalo/G5ShW/1/" rel="nofollow">http://jsfiddle.net/wanhalo/G5ShW/1/</a>
done it in 20mins but quite messed up (working) code <a href="http://jsfiddle.net/aamir/H7mmd/2/" rel="nofollow">http://jsfiddle.net/aamir/H7mmd/2/</a>
done it in more than 15min :(
<a href="http://fiddle.jshell.net/v6u6A/4/" rel="nofollow">http://fiddle.jshell.net/v6u6A/4/</a>