Rock Paper Scissors

Andrew Z Allen
,
TL;DR; Computers are better than you at even simple games. Watch it whoop you at rock paper scissors.

Want to play a game?

Loading...

This is a very simple implementation of a Rock Paper Scissors (RPS) game.

Weighing in at 157 lines of JavaScript and 179 lines of Python, the application tracks previous users play patterns to create a probability distribution of your next throw. Given this probability distribution, the game takes a weighted guess at your next throw and then throws whatever will beat that.

All source is available at my github.


Think I'm awesome? You should tell your friends! and follow me on twitter @achew22
Alternately, you can