TLDR; http://veerasundar.com/rock-paper-scissor-lizard-spoc/<p>Today I had to wait at Singapore Airport for my connecting flight to Chennai. So, used the time to make this little JavaScript game in ~3 hours.<p>Here's the source code: https://github.com/vraa/rpsls (of course, lot of cleaning to do :) )
I guess there is a problem with math.random(), since every time I played I either won or was a draw. A better seeding, maybe?<p>Sweet little game/code.