Rock, Paper, Scissors with AI Player

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.
Permanent Citation
"Rock, Paper, Scissors with AI Player"
http://demonstrations.wolfram.com/RockPaperScissorsWithAIPlayer/
Wolfram Demonstrations Project
Published: November 8 2013