1 = rock 2 = paper 3 = scissors It's like a Markov chain but "cooler". Try playing random moves and it should predict what you will play next and start to win. Maybe I'm just a predictable person but after ~50 turns it starts to beat me by a reasonable amount. I made it for a competition, here's the link: https://scratch.mit.edu/projects/1264194310