Rock, Paper, Scissors with AI Player

Requires a Wolfram Notebook System

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

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

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