News for hackers. Stuff that matters.
Re:Show HN: Play rock paper and scissors against a untrained... by mbrumlow on Friday July 26, 2019 @12:01AM (#20532259)
You can also do:

for(i=0; i<100; i++) { play(Math.floor(Math.random()*3)) }

Right in the JavaScript console.

Re:Show HN: Play rock paper and scissors against a untrained... by kojackst on Friday July 26, 2019 @12:08AM (#20532283)
Nice! Thanks, I've edited my post to use this shorter version. The sleep is needed to avoid freezing the tab.