Categories

MyLife
Opinions
OnTheNet
Shows
Miscellaneous
RandomKnowledge

Links

My Sister
S & M
Jiangzheng

Yiheng's Photos
Shuquan's Photos
Pei Yee's Photos
Yun Qin's Photos

#!/usr/bin/girl

Archive

February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
July 2008
August 2008
September 2008
November 2008
January 2009
February 2009
March 2009
April 2009
May 2009
June 2009
July 2009
August 2009
September 2009
October 2009
November 2009

   

Saturday, June 16, 2007
What have I been up to? -vvv

The past few weekends have been relatively uneventful. I had a cold for a while but most of the time, I was reading the book Cosmic Jackpot that Shuquan gave me. It was rather interesting and presented various points of view on why the universe seems fit for life but most of the theories presented were highly speculative. My inclinations are in a different direction from the author but without any substantial evidence, I guess it all boils down to personal preference. Perhaps I'll elaborate on this in a future blog entry.

I have also started a new personal project. I am writing a simple computer program that plays a simplified version of rock-paper-scissors with a human player. In my version of the game, the human chooses red or black and the computer does the same. If the colours match, the computer wins, otherwise the human wins. My objective is to create an algorithm to predict a human's next response based on his past responses.

So far I have tried out one method based on the randomness of the human player's response. It didn't perform too well, just barely better than random guessing. I have another idea which I will try soon.

I was gonna write more but it's about time I leave for the Play! A Video Game Symphony concert. Adios!


-- permalink --
Yiheng made
4:22 PM

2 Comments:

Curious to find out what kind of strategy you have assumed that the human is playing. If it is based on the assumption that players chooses black or white randomly (and that is in fact the best strategy to play if the opponent is playing his best strategy), then the computer cannot do any better than playing randomly.

It's already a Nash Equilibrium. However, unless you assume that the human plays in a particular fashion...it would interesting to find out what that is. To me, play play rock-paper-scissors randomly

By Blogger Soqcrates, at 1:54 AM  

In my first approach, I assume the human will try to play randomly but fail at it. The assumption is that humans are generally poor at creating random sequences. For example, for a random sequence of 100 trials, it is likely to see 5 consecutive reds or blacks but few humans will play it that way. I am trying to see if I can capitalize on this non-randomness.

In my second approach, I assume the human will have a subconscious preference for a certain color depending on how he performed in the last few trials.

So far, my algorithms are not sufficiently adaptive. They take too long to learn the pattern and slow to pick up new ones, i.e. they keep sticking to old strategies even after the human player switches strategies. I think my program will only do well against children.

I think random is the best strategy only if your opponent plays random. Otherwise it would be better to use the opponent's predictability against him. For example, if the opponent is an idiot who always play paper, then the best strategy would be to always play scissors. Of course, in doing so, one becomes predictable. I imagine there will be some sort of decaying oscillation around the Nash Equilibrium with each player trying to outguess each other until they both become random.

By Anonymous Anonymous, at 8:17 PM  

Post a Comment


 

   


Previous Posts

Models and Musicians -vwv

Elitism Survey -vvw

Some Interesting Shows This Season -vvz

Curious -vwv

Deal Or No Deal? -vvw

The Valkyrie, Act 1 -vvz

Time Loop -vwv vvw

Who deserves the seat? -vwv

Spontaneous Human Combustion -vwv

Yunnan Trip Photos are online -vvv vwv

Current Read

七侠五义

Last Three Books

道德經

The Ultimate Encyclopedia of Mythology
Arthur Cotterell, Rachel Storm


Momo
Michael Ende

Those Before

孫子兵法


Paycheck: And Other Classic Stories By
Philip K. Dick


Mirror Mirror: A Novel
Gregory Maguire


American Gods
Neil Gaiman


Maya 5 Fundamentals
Garry Lewis, Jim Lammers


Harry Potter and the Order of the Phoenix
J. K. Rowling