fuller crap outline

This commit is contained in:
Nicky Case 2017-07-12 17:46:38 -04:00
parent d803fdbba6
commit 0c610b1e14
5 changed files with 126 additions and 39 deletions

View file

@ -1,26 +1,9 @@
Tournament.SELECTION = 5; Tournament.resetGlobalVariables = function(){
subscribe("rules/evolution",function(value){
Tournament.SELECTION = value;
});
Tournament.NUM_TURNS = 10; Tournament.SELECTION = 5;
subscribe("rules/turns",function(value){ Tournament.NUM_TURNS = 10;
Tournament.NUM_TURNS = value;
});
// CREATE A RING OF AGENTS Tournament.INITIAL_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:"tft", count:5},
{strategy:"all_d", count:5}, {strategy:"all_d", count:5},
{strategy:"all_c", count:0}, {strategy:"all_c", count:0},
@ -29,8 +12,23 @@ Tournament.INITIAL_AGENTS = [
{strategy:"tf2t", count:5}, {strategy:"tf2t", count:5},
{strategy:"pavlov", count:5}, {strategy:"pavlov", count:5},
{strategy:"random", count:5} {strategy:"random", count:5}
]; ];
publish("pd/defaultPayoffs");
PD.NOISE = 0;
};
Tournament.resetGlobalVariables();
subscribe("rules/evolution",function(value){
Tournament.SELECTION = value;
});
subscribe("rules/turns",function(value){
Tournament.NUM_TURNS = value;
});
// 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

View file

@ -22,3 +22,65 @@ SLIDES.push({
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...

View file

@ -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...

View file

@ -3,15 +3,24 @@ 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();
}
}); });

View file

@ -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
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
blah blah blah blah blah blah blah blah<br>
</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>