The Genebat Applet. See below for an explanation.
A genome consists of these 23 probabilities. When a genome is printed in the text area of the applet, you'll get 23 digits, each digit being the first digit after the decimal point of a probability. (The second and later digits are supressed for brevity.) The probabilities are listed in the order given above. So, for instance, if a genome is given as
g=72246552474588426176200then the probability of cooperating on the first move is between 0.7 and 0.8, the probability of leaving if your partner cooperated is between 0.2 and 0.3, the probability of leaving if your partner defected is between 0.2 and 0.3, and so forth.
At the beginning of a simulation, each player gets a genome where each probability is uniformly selected from the interval from 0 to 1.
Match after match is played until all the players have the same strategy.
You can stop the simulation before that if you like, and either resume it, or start a new simulation with new random strategies.
[0,pop=1,g=07081006275954697884670] [39,pop=3,g=32321229063396048774696] [21,pop=4,g=72246552474588426176200] [7,pop=3,g=58802779360078999191657] [34,pop=4,g=78993226380659637144844] [7,pop=3,g=58802779360078999191657] [21,pop=6,g=72246552474588426176200] [34,pop=4,g=78993226380659637144844] [8,pop=5,g=37109773977008774591743] [24,pop=5,g=21661222875304324670490] [8,pop=7,g=37109773977008774591743] [12,pop=8,g=62629442796266132016130] [8,pop=6,g=37109773977008774591743] [21,pop=8,g=72246552474588426176200] [24,pop=7,g=21661222875304324670490] [21,pop=9,g=72246552474588426176200] [24,pop=11,g=21661222875304324670490] [21,pop=9,g=72246552474588426176200] [24,pop=13,g=21661222875304324670490] [21,pop=17,g=72246552474588426176200] [8,pop=17,g=37109773977008774591743] [21,pop=21,g=72246552474588426176200] [8,pop=25,g=37109773977008774591743] [21,pop=22,g=72246552474588426176200] [8,pop=22,g=37109773977008774591743] [21,pop=21,g=72246552474588426176200] Stable after 432 matchesA new line is printed only when a new strategy takes the lead. Eventually, after 432 matches, strategy number 0 won. It's genome description was 72246552474588426176200.
The graph at the bottom gives the relative populations for the strategies after each match. Each strategy is given a color of the spectrum, so at the very beginning, you see a vertical line with spectrum colors (red at the top, yellow, green cyan, blue, magenta, and red at the bottom). Many strategies die out while others become more numerous. After a time some colors become wide bands. Eventually, there are only a few, and finally only one, and that's when the text report, mentioned above prints out "Stable after" so many matches. Note that the actual color conveys no information; the strategy with each color was randomly selected.
There are indications that the next few probabilities in the genome tend to high or low values, but many simulations are necessary to see just what those trends are.
A different model is needed to see what's going on. One with either mutations or sexual reproduction. With mutations, the gene pool may tend toward the more successful strategies. With sexual reproduction, combinations may hurry the gene pool to those strategies much faster.
The files for this applet are listed here. The Genebat.html
file is this file you're looking at. The *.java files
are the program source files for the applet. The *.class
files are the compiled files that run when the applet is
running. They're all needed to run the applet.
My way Or The Highway: Introduction
David E. Joyce,
John Kennison,
both of the Department of Mathematics and
Computer Science,
and Nicholas Thompson,
of
the Frances L. Hiatt
School of Psychology.
Clark University
Worcester, MA 01610