Share your repls and programming experiences

← Back to all posts
Rock Paper scissors with neural network
rorysharp (28)

Rock Paper scissors with a neural network for the computers move. Code on github https://github.com/qwertpi/rpsai and a walkthrough of the code on Medium https://medium.com/datadriveninvestor/making-your-first-neural-network-part-1-a683b80b93e3

Commentshotnewtop
BenDaBest (1)

haha I used a random number generator to pick the choices for me and still got crushed, 36/40/47 before it crashed

rorysharp (28)

@BenDaBest It looks like the "crash" was caused by you not entering a move?

Lasseu (0)

Maybe you could change selection for 1,2,3 or p,r,s .. it is a lot easier to write just "paper" than scissors :)

rorysharp (28)

@Lasseu p r and s do actually work, maybe I should make this clearer?

theprobobxd (0)

I only got draw, and I used rock the entire time. Maybe you could vary the outcomes?

rorysharp (28)

@theprobobxd Did you give permison for your data to be used for improvements? If so, hopefully next time I train the neural net it will learn that people sometimes repeat the same move