Tuesday, April 17, 2012

Rock-Paper-Scissors: You vs. The Computer - Interactive


By GABRIEL DANCE and TOM JACKSON
Additional Production: Xaquín G.V. and Paul Lau/The New York Times
Historical game data courtesy of Shawn Bayern

46 comments:

Cooper said...

When I started this, I thought it would only be a regular rock, paper, scissors game with the computer throwing at random. I think it is very, very cool that it studies past moves and uses them against you. I never knew that the game was so complicated.

Nick said...

I thought that the people who programmed this just thought that they just programmed for the computer to pick at random. I never thought there was so much strategy involved in rock, paper, scissors.

Julia said...

I think that it is unfair because whenever you choose your move they could see your move and then choose theirs.

Esther said...

This was really cool! I agree with Cooper, I thought it would be some sort of randomized game, but it was very interesting how it analyzed moves.

Ben said...

Wow. Programming a simple application, like that, but using 200,000 individual games of the human version must take a lot of programming. It all relies on probability of patterns, and if you think of it that way, you could find a major fault in the computers system. If you recorded every throw that you made, then you could throw strange patterns and irregular combos to confuse the computer and make it think that you will go into a certain pattern when you go into something completely different. Believe it or not, I lost more times when I played the novice version!

Rehaan said...

Unlike Julia, I think that it is fair. Julia said that they see you move. The purpose of this link was to show you how a computer could take a simple game of rock paper scissors, to such a high degree. If you pressed the button that said "See how the computer is thinking", then it would've showed you how it analyzed it's moves. I think that it doesn't really analyze it's moves though. I believe so because i think that I don't pick the same moves as someone else would. I think that it just guesses and checks. It mentioned that it takes info from 100,000 players. All of them probably guess differently. The chance that it will beat me is 1/3.

Joe said...

I thought this was very interesting and here is why. I tested the game by playing 15 rounds on novice, and 15 on veteran. On novice, I scored 7, the computer scored 4, and we tied 4 times. I found that it was going based off of my tendencies, so I started a trend such as Paper, Paper, Scissors, Rock, played it a couple times, changed it, and found that the computer was caught off guard, which is why I think I got so many wins. On veteran, I had 5 wins, the computer had 3 wins, and we tied 5 times. It didn't fall for my tendency change as often as on Novice, which is why we tied so much. It used it's increased smarts to play it safe and tie me a lot, instead of being risky and going "All or Nothing." Overall, it is a very good simulation, but once you get inside it's head like I did, it is easy to win.

Sofia said... said...

I agree with Rehaan that he disagrees with Julia because when it says to "See how the computer is thinking" you see that the computer sees patterns that you are doing so it would be easier to win the human.

Amanda said...

This is really cool and interesting. I can't believe that someone actually programmed all of that. Must have took a really long time. I don't agree with Julia because they cannot see your move, they just analyze patterns. I also agree with Cooper and Esther, I thought that it would just be random. I also didn't know that this game was so hard.

Amanda said...

This is really cool and interesting. I can't believe that someone actually programmed all of that. Must have took a really long time. I don't agree with Julia because they cannot see your move, they just analyze patterns. I also agree with Cooper and Esther, I thought that it would just be random. I also didn't know that this game was so hard.

Nate said...

Amazing! I did the what the computer is think option and it was cool to see how the computer found patterns in everything I did, such as a pattern of me usually going for scissors after paper. It was really awesome how it learned from its failed attempts what beats what, almost as if I was programming it in a very very simplified way! Overall, it is amazing how it works and i even learned, and found patterns in the computer that led me to win a few games! That was really fun, and I must say congratulations to Gabriel Dance and Tom Jackson, who I guess programmed it.

Alex G. said...

This was super interesting. When I started the game I just thought it was going to be a rock, paper scissors game. Then at the end of the game, I saw what the computer was thinking! It was really cool and I never thought there was so much thinking involved in three rounds of that game. I think that this probably took a long time and their work shows. They took this game to a different level.

Julia said...

After I played the game a few more times I realized that it actually was fair because you can't just keep playing the same move. (It will also never play the same move twice in a row.) I agree with Alex G. that they took the rock, paper, scissors game to a whole different level. The only one thing I am questioning is if they have the game running on a data base that just keeps repeating itself.

Sinclaire said...

Julia, the computer does choose after you but I don't think it goes off of your pick. I personally won at the novice level. It is very interesting that the computer can predict what you are going to do sometimes. After playing for a while, I tried to watch what the computer was predicting and started getting better and tricking the computer into predicting something wrong. For example, I would do rock over and over again, and then switch to something else before the computer realized what I was doing. This was a very fun interactive.

Ava D. said...

This was a really fun game! I love the traditional game of rock, paper, scissors, and I thought that this was fun also.
After a while I realized that if I had just put down a rock and they put down a paper, they would assume that I would put the superior to their last move, in case they used the same move again hoping that we would both use the same move as before, having them win. I would know beforehand that they would assume this, and I would put the superior to paper (scissors) down, therefore winning the match.
That is my strategy for the automated game. (If that makes any sense!) I thought that it is really cool to work with probability and all of the problem-solving features they equipped the computer with.

Jason said...

I thought this game was really amazing. At first, I thought would just be some game where the computer just picks a random choice and plays it. Once I clicked the "See what the computer is thinking" button, I really changed my mind. I think it is so cool how it analyzes every move and compares every situation with thousands of other situations and that applies that to the round being played is amazing. I disagree with Julia who said that the game is unfair. If you look at the "See what the computer is thinking button," you can tell that the computer is actually analyzing everything and not just cheating by looking at what you are picking. This simulation was really cool and it is amazing that people can program a game like this.

Robert said...

This game is really fun. Actually I think a little bit like that when I play rock, paper, scissors. I predict their next move by analyzing their move patterns. Though there is one thing that is really different from regular rock paper scissors. In real life, you can't click 3 continue buttons to find your opponents answer! I have played like 50 rounds already, this seems like it could be a very popular game.

Emma said...

This program seems very complicated. If you look at what the computer is thinking, in the novice level, it looks for patterns in your choices of play. First it looks at your last four moves, and then if it doesn't find this pattern in your history then it looks at your last three moves, then last two moves, then last move. In the veteran level, it looks at your last four moves and its last four moves, and then looks through all its data for times when you and it both chose those patterns. I played four games of 20 rounds each in the novice level where I randomly chose what to play. The computer won more rounds than I did in two of them, and I won more rounds than the computer did in two of them. I don't know if it was just luck or if I made patterns without realizing it. I did the same thing in the veteran level. The computer won more rounds than I did in three of them, and I won more rounds than it did in one of them. The computer just looked at the patterns, but there are many more ways to strategize (Ava's way for example). I think that most people don't purposely put down patterns. Still, this program shows a different side to rock, paper, scissors, that most people don't think about much.

David said...

I always thought of the rock-paper-scissors game as random moves that are separate and unpredictable. Now I see it as patterns of moves that a person makes that can be studied and analyzed. Different people will chose different patterns of moves. I think it’s mostly subconscious. The computer program uses this information to “predict” what moves I am going to make which gives it a definite advantage. What would happen if a computer played another computer? Is it possible to have a completely randomized game?

David said...

The computer doesn’t actually reason like a human because it’s a programmed machine and doesn’t think like humans do. It just searches for certain patterns that the player tends to use, and then uses it to try to win.

Anthony said...

This was such a cool interactive website! I love the programming, that must take a lot of skill. The website that says see what the computer is thinking shows a bunch of data, too. It is also very interesting that it learns from past expierience.

Cami said...

I really like this game. It was so much fun, and the fact that it looks at your moves and then analyzes them is really cool. Like Amanda said, it seemed very hard to program.

Camille said...

This game was fun but it was also frustrating. I think that the computer analysis what your doing so that they know what you are about to do. I think it lets you win some and tie some so you don't send them complaints.

Jordan said...

I disagree with Julia. The CPU is looking for patterns in your past plays. If you play rock paper siccors with the strategy of repetition, sorry. I agree with David. The computer does not think like a real human, and not all humans play with a pattern strategy. It is neat how you can analyze rock paper siccors. I also want to say, I think the robo-hand was cool.

Luca said...

Wow, I never thought this would be such an interesting post! It is amazing how it analyzes your moves, and the moves of about 120,000 other people. However, after a while it will show you what it is thinking, and the move it will do next, so the players may have an unfair advantage.

Max said...

I started with the novice computer. It did not know how to predict my moves, and I beat it. After that I was confident that I could beat the advanced player. I was very wrong. The advanced computer was beating me 17 to 5 when a got angry and quit. It is interesting that by using data from other players, the computer can predict your move.

Ava S. said...

I did the novice computer. I did a pattern and then once I thought the computer was catching on, I would do the opposite of what he did. THe first time I won. After that, we had a couple ties, then he started beating me. If you guessed, you would probably get beat. If you took thirty seconds to think about it, you could usually beat the computer.

Ethan said...

When I played one hundred rounds against the veteran computer. I beat it with 39 wins, 37 ties, and 24 losses. To beat it, you can take advantage of the fact that it uses online statistics. All you have to do is do something that most people don't do. I began by going paper paper paper paper paper paper . . . until the computer caught on. Then I went scissor scissor scissor scissor scissor scissor. By doing this, the computer can't make good analysis' of your patterns because you really only have one patterns. Then I did my first rock. The computer was probably predicting that I would go rock rock rock rock rock rock rock or something like that, so I decided to mix it up and go in more random patterns. The trick is to not repeat any patterns. I you remember doing rock then 2 scissors, try not to repeat that pattern. It is actually harder to beat a person than the computer because most people play randomly and forget your patterns after a couple rounds and you can't take advantage of them analyzing your patterns and online statistics.

Kevin said...

I disagree with Joe because technically, it's quite impossible to "get inside the computer's head." What you did here was simply analyze your own data and predict what the computer would predict you would do. However, a computer has an almost infinite memory, while a human could only memorize fifty throws, tops. Therefore, the computer would probably beat you if you played more rounds. Also, the computer would probably make more precise predictions after you played more moves. You probably made patterns without even knowing it. For those people who were purposefully trying to catch the computer off guard in the long run, just remember that you're trying to pretend that you're playing a human. This is the true purpose of the simulation.

Ethan said...

Wow. I just played 100 more rounds and beat the veteran computer with 34 wins, 34 ties, and 32 losses. I agree with Kevin that I probably am doing patterns without noticing them. But sometimes I purposefully do some patterns to get them drilled into the computers memory, so I can switch up the patterns and confuse it. But maybe I should try 1000 rounds and see who wins.

Edie said...

This is pretty cool. At first, it looked like the computer was going after me; it would be cheating. Then I realized it wasn't and I also saw the "See what the computer is thinking" button. I also tried to catch the computer off guard. It only worked a couple of times, though, for some reason. I agree with Ben that the people must have done a lot of programming to create this game for this article, so I praise those people. I also agree with Rehaan that I never thought a simple game such as rock, paper, scissors could be taken to such a high degree and be so complicated.

Gillian said...

This game was really fun! I didn't know how high tech rock paper scissors was. I disagree with Julia because this article wasn't supposed to show you that robots cheat, it was supposed to show you a different side of rock paper scissors. In veteran I would just choose randomly and I would beat the computer most of the time. I think that when people play this sort of thing they over think the game and that's what the computer bases it's reactions off of. If you play rock paper scissors more spontaneously, I think you will win more.

Alex M. said...

I think that this is a very interesting game because it uses your patterns against you.

Aaron said...

The computer is looking at your moves and learning your strategy. Then it starts to predict what you are going to use and try and beat you. It cool that the computer is teaching itself.

Nick said...

I wonder how long it took to program this.

Cypress said...

Wow! This was really interesting. I thought that this would be a regular rock paper scissors game and that it would be random. But I was wrong! I knew there were strategies, but I think it is really cool that the computer can check you history to see recent moves and patterns that you have. You would probably just have better luck randomizing it yourself, because then it probably couldn't find patterns in the way you did it unless you just happened to pick a certain one.

Samantha said...

I think this is a great example of probability. It's odd that you can predict what your opponent is doing by what they have done. I guess we do that in daily life in different ways and not always realize it. I though it was luck of the draw and random. If you can identify their patterns, you would have a great chance of winning. When I looked at what the computer was thinking, I did what it would not expect. When I could not look at what it was thinking, I lost.

Will said...

This is cool that people programmed a computer to think like a human. If this were taken on large scale, in hundreds of years, humans could find themselves playing androids instead of a bunch of code.

Ethan said...

I played against the novice computer for 15 rounds and I beat it 8 times, tied it 7 times, and never lost to it. The trick is to remember your previous throws and if you remember throwing rock then scissors or rock then paper, try rock then rock. If it is impossible to not repeat patterns, go with the one closest to the present throw. For example, if you remember going rock then paper then rock then scissors then rock then rock, and you throw another rock, the computer will probably think that you will do another rock next because that is what you did the nearest to the present throw. On veteran its a bit harder. This technique works, but not as well.

Alaman said...

I thought it was going to be easy to predict what the computer was going to do, but when I saw what it was thinking, I realized that it was really smart and that it was going to be a challenge. Rock, paper, scissors has much more depth and complexity than I excpected.

Alaman said...

I meant to write expected.

Caroline said...

It is cool what the computer does, but it only works by patterns. It never actually thinks to itself, what would I do if I was a human? Of course, they probably couldn't program a computer to do that, and overall this was pretty cool.

Colin said...

I am having a lot of fun with this. I'm playing it on Veteran without looking at the -See what the computer is thinking- and the score is: Wins:11 Ties: 15 Wins(Computer): 3
I find this very interesting.

Gwen said...

I really liked this game. I realize that this would have taken a lot of programming time, but I wonder who was the programmer? This game doesn't bring in any money, so why would a person create it? Also, when real people play rock paper scissors, they don't use this much strategy. At least, when I play i don't analyze the other persons patterns. I don't think anyone else does. This gives the computer an unfair advantage, because it has the history of your moves, and uses that to make theirs. This advantage is equalized by the fact that it has no human intelligence, as it is based off patterns. I think that if you could somehow give it the advantage of human intelligence, you would have a rock paper scissors champion.

Emory said...

This was really cool. It is really cool to see the computer's side of the game. There must have been a lot of math and science envolved like probability was probably (word pun haha) used to find patterns while playing the game.

Cooper said...

I am baffled by the complexity of this game.