Rock Paper Scissors Game

Hey!

Sorry if this is posted in the wrong place, but I'm excited because I made my first game in Java. It's a rock paper scissors game and it's online at

www.geocities.com/glopv2

The reason I made it is because I wanted to make a computer RPS machine that would detect patterns in your playing style. As of right now, the program works, but it needs to play a lot of games before it starts to get the hang of how you play. Playing first to 20 is possible but if you play to 100, you will be hard pressed to win.

Let me know what you think!

Thanks,

Dave

[598 byte] By [Dave_Carta] at [2007-11-27 11:31:00]
# 1

46-54

It bothered me that I would pick the same one over and over, and it would always beat me, then when I finally decided to change, it would know when I was going to stop picking the same one. I thought I was being fairly random in how often I picked the same one multiple times.

It also picked up on me R->P->S order pretty quick and would pick S the round after I picked R.

I played a second time with random clicking, and the results were 47-54

robtafta at 2007-7-29 16:37:07 > top of Java-index,Other Topics,Java Game Development...
# 2

I also noticed that on about half of all people's computers, the game simply shows up as a red X, I suppose indicating that these people have Java but can't load the game.

Why does it work on some people's computers and not on others? Does it have to do with browser security settings? Anyone see this type of thing before?

Thanks

Dave

Dave_Carta at 2007-7-29 16:37:07 > top of Java-index,Other Topics,Java Game Development...
# 3

Very neat!

maple_shafta at 2007-7-29 16:37:07 > top of Java-index,Other Topics,Java Game Development...
# 4

> I also noticed that on about half of all people's

> computers, the game simply shows up as a red X, I

> suppose indicating that these people have Java but

> can't load the game.

>

> Why does it work on some people's computers and not

on others? Does it have to do with browser security

> settings? Anyone see this type of thing before?

Probably version incompatibility. They have an older runtime.

You can see for yourself by looking to see what the actual error is in the Java console of the browser. Or ask the people who are having problems what version they have installed etc.

Depending on what you did you may be able to make the compiled classes compatible with older versions.. basically as long as you didn't use newer features you can say it's old and it will work on older versions.

cotton.ma at 2007-7-29 16:37:07 > top of Java-index,Other Topics,Java Game Development...
# 5

I just finished a very epic game of RPS.

I lost 57 to 100. :(

CaptainMorgan08a at 2007-7-29 16:37:07 > top of Java-index,Other Topics,Java Game Development...
# 6

> I just finished a very epic game of RPS.

>

> I lost 57 to 100. :(

Students :-p

macrules2a at 2007-7-29 16:37:07 > top of Java-index,Other Topics,Java Game Development...
# 7

I only played to 20, but yeah it was pretty good, it was kind of easy to see the pattern that it thought I had and alter it accordingly though. Kind of brings a poker element to the game though.

RedUnderTheBeda at 2007-7-29 16:37:07 > top of Java-index,Other Topics,Java Game Development...
# 8

I reckon the game cheats :(

macrules2a at 2007-7-29 16:37:07 > top of Java-index,Other Topics,Java Game Development...
# 9

I don't think it cheats. Although, I would love to see the source code for it. When I played, I let it learn a pattern, and then countered with something that will beat it. For instance, I picked these 3, R-P-S, over and over until it learned enough to beat me for all 3. Then knowing what it was expecting me to pick next, I would pick what would beat it, S-R-P. Every so often let it think I was still following the R-P-S pattern and then change to some other pattern that beats it. I was pretty close to 50/50.

I wonder what would happen if it played against itself 1000 times, if it would be 50/50.

robtafta at 2007-7-29 16:37:07 > top of Java-index,Other Topics,Java Game Development...
# 10

Played and lost 67 to 100. Intriguing, the way it learns patterns in play style. As others have mentioned, it would be interesting to see the source code for.

markt1964a at 2007-7-29 16:37:07 > top of Java-index,Other Topics,Java Game Development...
# 11

Nice game, do you have some patter algos in there or is it chance that it seems to learn the patterns that I use?

morgalra at 2007-7-29 16:37:07 > top of Java-index,Other Topics,Java Game Development...