0){
// Testing phase
- var move = moves.pop();
+ var move = moves.shift();
return move;
}else{
if(everCheatedMe){
diff --git a/js/sims/Tournament.js b/js/sims/Tournament.js
index 39b23c1..fec21b5 100644
--- a/js/sims/Tournament.js
+++ b/js/sims/Tournament.js
@@ -1,12 +1,22 @@
Tournament.SELECTION = 5;
-Tournament.NUM_TURNS = 5;
+Tournament.NUM_TURNS = 20;
// CREATE A RING OF AGENTS
-Tournament.AGENTS = [
+/*Tournament.AGENTS = [
{strategy:"all_c", count:15},
{strategy:"all_d", count:5},
{strategy:"grim", count:0},
{strategy:"tft", count:5},
+];*/
+Tournament.AGENTS = [
+ {strategy:"all_c", count:15},
+ {strategy:"all_d", count:5},
+ {strategy:"tft", count:5},
+ //{strategy:"grim", count:3},
+ //{strategy:"prober", count:3},
+ //{strategy:"tf2t", count:13},
+ //{strategy:"pavlov", count:13},
+ //{strategy:"random", count:13}
];
function Tournament(config){
diff --git a/js/slides/Slides_Ecology.js b/js/slides/Slides_Ecology.js
new file mode 100644
index 0000000..88f4451
--- /dev/null
+++ b/js/slides/Slides_Ecology.js
@@ -0,0 +1,39 @@
+SLIDES.push({
+
+ id: "sim",
+ add:[
+
+ // The tournament simulation
+ {id:"tournament", type:"Tournament", x:0, y:20},
+
+ // All the words!
+ {
+ id:"textbox", type:"TextBox",
+ boxes:[
+ { x:500, y:0, width:460, height:50, text_id:"sandbox_1" },
+ { x:500, y:370, width:460, height:200, text_id:"sandbox_2" }
+ ]
+ },
+
+ // Buttons
+ {
+ id:"_b1", type:"Button", x:500, y:150, width:140,
+ text_id: "label_play_tournament",
+ message: "tournament/play"
+ },
+ {
+ id:"_b2", type:"Button", x:500, y:220, width:140,
+ text_id: "label_eliminate_bottom_5",
+ message: "tournament/eliminate",
+ active:false
+ },
+ {
+ id:"_b3", type:"Button", x:500, y:290, width:140,
+ text_id: "label_reproduce_top_5",
+ message: "tournament/reproduce",
+ active:false
+ }
+
+ ]
+
+});
\ No newline at end of file
diff --git a/lang/en.html b/lang/en.html
new file mode 100644
index 0000000..a269ae3
--- /dev/null
+++ b/lang/en.html
@@ -0,0 +1,32 @@
+
+
+
+
+1) play tournament
+
+
+
+2) eliminate bottom 5
+
+
+
+3) reproduce top 5
+
+
+
+Let's say there are three kinds of players:
+
+Always Cooperate,
+Always Cheat &
+Tit For Tat
+
+"What happens when you let a mixed population play against each other, and evolve over time?
+
+
+
+Always Cheat dominates at first, but when it runs out of suckers to exploit,
+its empire collapses – and the fairer Tit For Tat takes over.
+
+We are not punished for our sins, but by them.
+- Elbert Hubbard
+
\ No newline at end of file