We used Markov chain approach to study the evolution of memory-one strategies used in the Prisoner's Dilemma in different agent-based simulation contexts using genetic algorithms programmed on the NetLogo environment