DEV Community

Victor Ribeiro
Victor Ribeiro

Posted on • Originally published at github.com

Can a neural network predict your next move on a game of rock, paper and scissors?

JoKenPo

Can a neural network predict your next move on a game of rock, paper and scissors? That's what my last experiment is trying to answer.

It works by storing your last moves and trying to predict your next ones.

The experiment is in JavaScript and can be played on browser.

Play it here

See the code here

Top comments (2)

Collapse
 
phlash profile image
Phil Ashby

Nice - exploiting human biases to always operate with patterns :)

I wonder how it does against a random selector?

Collapse
 
victorqribeiro profile image
Victor Ribeiro

A person on reddit wrote a simple script to play it random 200 times. The neural net won every time, apparently.

reddit.com/r/javascript/comments/b...