fuller crap outline
This commit is contained in:
parent
d803fdbba6
commit
0c610b1e14
5 changed files with 126 additions and 39 deletions
|
@ -1,37 +1,35 @@
|
||||||
Tournament.SELECTION = 5;
|
Tournament.resetGlobalVariables = function(){
|
||||||
|
|
||||||
|
Tournament.SELECTION = 5;
|
||||||
|
Tournament.NUM_TURNS = 10;
|
||||||
|
|
||||||
|
Tournament.INITIAL_AGENTS = [
|
||||||
|
{strategy:"tft", count:5},
|
||||||
|
{strategy:"all_d", count:5},
|
||||||
|
{strategy:"all_c", count:0},
|
||||||
|
{strategy:"grudge", count:0},
|
||||||
|
{strategy:"prober", count:0},
|
||||||
|
{strategy:"tf2t", count:5},
|
||||||
|
{strategy:"pavlov", count:5},
|
||||||
|
{strategy:"random", count:5}
|
||||||
|
];
|
||||||
|
|
||||||
|
publish("pd/defaultPayoffs");
|
||||||
|
|
||||||
|
PD.NOISE = 0;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
Tournament.resetGlobalVariables();
|
||||||
|
|
||||||
subscribe("rules/evolution",function(value){
|
subscribe("rules/evolution",function(value){
|
||||||
Tournament.SELECTION = value;
|
Tournament.SELECTION = value;
|
||||||
});
|
});
|
||||||
|
|
||||||
Tournament.NUM_TURNS = 10;
|
|
||||||
subscribe("rules/turns",function(value){
|
subscribe("rules/turns",function(value){
|
||||||
Tournament.NUM_TURNS = value;
|
Tournament.NUM_TURNS = value;
|
||||||
});
|
});
|
||||||
|
|
||||||
// CREATE A RING OF AGENTS
|
|
||||||
/*Tournament.INITIAL_AGENTS = [
|
|
||||||
{strategy:"tft", count:5},
|
|
||||||
{strategy:"all_d", count:5},
|
|
||||||
{strategy:"all_c", count:15},
|
|
||||||
{strategy:"grudge", count:0},
|
|
||||||
{strategy:"prober", count:0},
|
|
||||||
{strategy:"tf2t", count:0},
|
|
||||||
{strategy:"pavlov", count:0},
|
|
||||||
{strategy:"random", count:0}
|
|
||||||
];*/
|
|
||||||
|
|
||||||
Tournament.INITIAL_AGENTS = [
|
|
||||||
{strategy:"tft", count:5},
|
|
||||||
{strategy:"all_d", count:5},
|
|
||||||
{strategy:"all_c", count:0},
|
|
||||||
{strategy:"grudge", count:0},
|
|
||||||
{strategy:"prober", count:0},
|
|
||||||
{strategy:"tf2t", count:5},
|
|
||||||
{strategy:"pavlov", count:5},
|
|
||||||
{strategy:"random", count:5}
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
// OH THAT'S SO COOL. Mostly C: Pavlov wins, Mostly D: tit for two tats wins (with 5% mistake!)
|
// OH THAT'S SO COOL. Mostly C: Pavlov wins, Mostly D: tit for two tats wins (with 5% mistake!)
|
||||||
// ALSO, NOISE: tft vs all_d. no random: tft wins. low random: tf2t wins. high random: all_d wins. totally random: nobody wins
|
// ALSO, NOISE: tft vs all_d. no random: tft wins. low random: tf2t wins. high random: all_d wins. totally random: nobody wins
|
||||||
|
|
||||||
|
|
|
@ -21,4 +21,66 @@ SLIDES.push({
|
||||||
onend: function(self){
|
onend: function(self){
|
||||||
self.clear();
|
self.clear();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Place Your Bets
|
||||||
|
SLIDES.push({
|
||||||
|
onstart: function(self){
|
||||||
|
|
||||||
|
// Tournament
|
||||||
|
Tournament.INITIAL_AGENTS = [
|
||||||
|
{strategy:"all_c", count:15},
|
||||||
|
{strategy:"all_d", count:5},
|
||||||
|
{strategy:"tft", count:5}
|
||||||
|
];
|
||||||
|
self.add({id:"tournament", type:"Tournament", x:-20, y:20});
|
||||||
|
|
||||||
|
// Words to the side
|
||||||
|
self.add({
|
||||||
|
id:"text", type:"TextBox",
|
||||||
|
x:510, y:30, width:450, height:500,
|
||||||
|
text_id:"evo_bets"
|
||||||
|
});
|
||||||
|
|
||||||
|
// Button
|
||||||
|
self.add({
|
||||||
|
id:"button_step", type:"Button",
|
||||||
|
x:510, y:300,
|
||||||
|
text_id:"button_step",
|
||||||
|
message: "tournament/step"
|
||||||
|
});
|
||||||
|
|
||||||
|
// Button
|
||||||
|
self.add({
|
||||||
|
id:"button_next", type:"Button",
|
||||||
|
x:510, y:400,
|
||||||
|
text_id:"label_next",
|
||||||
|
onclick:function(){
|
||||||
|
_.answer = "tft";
|
||||||
|
publish("slideshow/scratch");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
onend: function(self){
|
||||||
|
self.clear();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Result: First Round
|
||||||
|
|
||||||
|
// Result: Second Round
|
||||||
|
|
||||||
|
// Result: til the end...
|
||||||
|
|
||||||
|
// Explanation
|
||||||
|
|
||||||
|
// (Yup, even w Grudgers & Detectives)
|
||||||
|
|
||||||
|
// Problem 1: Number of interactions
|
||||||
|
|
||||||
|
// Problem 2: Payoffs
|
||||||
|
|
||||||
|
// Teaser...
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,16 @@
|
||||||
|
// One-off
|
||||||
SLIDES.push({
|
SLIDES.push({
|
||||||
id: "noise",
|
id: "noise",
|
||||||
onstart: function(self){
|
onstart: function(self){
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// New characters
|
||||||
|
|
||||||
|
// Tournament
|
||||||
|
|
||||||
|
// Tournament #2
|
||||||
|
|
||||||
|
// Tournament: adjust noise
|
||||||
|
|
||||||
|
// Teaser...
|
|
@ -2,16 +2,25 @@ SLIDES.push({
|
||||||
|
|
||||||
id: "sandbox",
|
id: "sandbox",
|
||||||
onstart: function(self){
|
onstart: function(self){
|
||||||
|
|
||||||
}
|
|
||||||
/*add:[
|
|
||||||
|
|
||||||
// The tournament simulation
|
// The tournament simulation
|
||||||
{id:"tournament", type:"Tournament", x:-20, y:-20},
|
Tournament.resetGlobalVariables();
|
||||||
|
self.add({id:"tournament", type:"Tournament", x:-20, y:-20},);
|
||||||
|
|
||||||
// Screw it, just ALL of the Sandbox UI
|
// Screw it, just ALL of the Sandbox UI
|
||||||
{id:"sandbox", type:"SandboxUI"}
|
self.add({id:"sandbox", type:"SandboxUI"});
|
||||||
|
|
||||||
]*/
|
// Button for next...
|
||||||
|
self.add({
|
||||||
|
id:"button_next", type:"Button",
|
||||||
|
x:510, y:500,
|
||||||
|
text_id:"label_next",
|
||||||
|
message: "slideshow/scratch"
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
onend: function(self){
|
||||||
|
self.clear();
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
17
lang/en.html
17
lang/en.html
|
@ -145,6 +145,10 @@ And *that's* why "peace" broke out in the trenches of World War I. Each side was
|
||||||
<p id="evolution_intro_button">
|
<p id="evolution_intro_button">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p id="button_step">
|
||||||
|
step
|
||||||
|
</p>
|
||||||
|
|
||||||
<!-- - - - - - - - - - - - - - - - - -->
|
<!-- - - - - - - - - - - - - - - - - -->
|
||||||
<!-- - - - - NOISE! - - - - - - -->
|
<!-- - - - - NOISE! - - - - - - -->
|
||||||
<!-- - - - - - - - - - - - - - - - - -->
|
<!-- - - - - - - - - - - - - - - - - -->
|
||||||
|
@ -195,13 +199,13 @@ In each round of a one-on-one game, there's a [N]% chance a player makes a mista
|
||||||
|
|
||||||
<p id="conclusion">
|
<p id="conclusion">
|
||||||
blah blah blah blah
|
blah blah blah blah
|
||||||
|
blah blah blah blah<br>
|
||||||
|
blah blah blah blah
|
||||||
|
blah blah blah blah<br>
|
||||||
blah blah blah blah
|
blah blah blah blah
|
||||||
blah blah blah blah<br>
|
blah blah blah blah<br>
|
||||||
blah blah blah blah
|
blah blah blah blah
|
||||||
blah blah blah blah
|
|
||||||
blah blah blah blah<br>
|
blah blah blah blah<br>
|
||||||
blah blah blah blah
|
|
||||||
blah blah blah blah
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p id="conclusion_button">
|
<p id="conclusion_button">
|
||||||
|
@ -326,6 +330,9 @@ rules
|
||||||
3) reproduce top 5
|
3) reproduce top 5
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p id="label_next">
|
||||||
|
next
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<!-- - - - - - - - - - - - - - - - - -->
|
<!-- - - - - - - - - - - - - - - - - -->
|
||||||
|
@ -351,11 +358,11 @@ rules
|
||||||
5. Making Mistaeks
|
5. Making Mistaeks
|
||||||
</p>
|
</p>
|
||||||
<p id="chapter_sandbox">
|
<p id="chapter_sandbox">
|
||||||
6. Sandbox
|
6. Sandbox Mode
|
||||||
</p>
|
</p>
|
||||||
<p id="chapter_conclusion">
|
<p id="chapter_conclusion">
|
||||||
7. Conclusion
|
7. Conclusion
|
||||||
</p>
|
</p>
|
||||||
<p id="chapter_credits">
|
<p id="chapter_credits">
|
||||||
X. Credits
|
Credits
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in a new issue