Rock, Paper, Scissors with AI Player

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

This implementation of the simple Rock, Paper, Scissors game includes a computer player that attempts to learn your tactics to allow it to predict what you will play next and beat you. The longer you play, the more it will learn about your choices. After about 50 games, it should be beating you.

Contributed by: Jon McLoone (November 2013)
Open content licensed under CC BY-NC-SA


Snapshots


Details

The computer player looks for all past sequences that match the most recent sequence of moves. It looks in your play history, its play history, and your combined history for the longest matching sequences and bases its prediction on the sequence that is most statistically significantly different from truly random play.



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send