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,24 +1,7 @@
Tournament.resetGlobalVariables = function(){
Tournament.SELECTION = 5;
subscribe("rules/evolution",function(value){
Tournament.SELECTION = value;
});
Tournament.NUM_TURNS = 10;
subscribe("rules/turns",function(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},
@ -31,6 +14,21 @@ Tournament.INITIAL_AGENTS = [
{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!)
// 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();
}
});
// 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({
id: "noise",
onstart: function(self){
}
});
// New characters
// Tournament
// Tournament #2
// Tournament: adjust noise
// Teaser...

View file

@ -3,15 +3,24 @@ SLIDES.push({
id: "sandbox",
onstart: function(self){
}
/*add:[
// 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
{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>
<p id="button_step">
step
</p>
<!-- - - - - - - - - - - - - - - - - -->
<!-- - - - - 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">
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
blah blah blah blah
blah blah blah blah<br>
</p>
<p id="conclusion_button">
@ -326,6 +330,9 @@ rules
3) reproduce top 5
</p>
<p id="label_next">
next
</p>
<!-- - - - - - - - - - - - - - - - - -->
@ -351,11 +358,11 @@ rules
5. Making Mistaeks
</p>
<p id="chapter_sandbox">
6. Sandbox
6. Sandbox Mode
</p>
<p id="chapter_conclusion">
7. Conclusion
</p>
<p id="chapter_credits">
X. Credits
Credits
</p>