Courses/CS 461/Winter 2006/Joey Leung/Week 5

From CSWiki

Jump to: navigation, search

Contents

[edit] PD Basic Evolutionary

[edit] Description

 I added 2 more strategies into the PD Basic Evolutionary model.  I set a random number 
 of 6 to select one of the follow strategy:
 if x = 0 cooperate? = true
 if x = 1 cooperate? = false
 if x = 2 then pick a random number again of 2 
   if random = 1 [set cooperate? true] 
   esle [set cooperate? false]]
 if x >= 3 cooperate? = cooperate?-of max-one-of neighbors [score]]


[edit] Screenshot

Image: PD1.jpg


Image: PD2.jpg


Image: PD3.jpg

[edit] Source File

Media: PD Evolutionary.nlogo