GithubHelp home page GithubHelp logo

v1v2r0b8 / sugarscape Goto Github PK

View Code? Open in Web Editor NEW

This project forked from langerv/sugarscape

0.0 0.0 0.0 2.9 MB

My implementation of Epstein and Axtell's large scale agent-based computational model, the Sugarscape, to explore the role of social phenomenon such as seasonal migrations, pollution, sexual reproduction, combat, and transmission of disease and even culture.

License: MIT License

Python 100.00%

sugarscape's Introduction

sugarscape

My implementation in Python of Epstein and Axtell's large scale agent-based computational model, the Sugarscape, to explore the role of social phenomenon such as seasonal migrations, pollution, sexual reproduction, combat, and transmission of disease and even culture.
In other words: Cellular Automata + Agents = Sugarscape.

Results

Evolution from random distribution under rules ({environment}, {agents}) = ({G1}, {M}):

Emergent diagonal waves of migration under rules ({G1}, {M}):

Seasonal migration and Hibernation resulting from rules ({S[1,8,50]}, {M}) and random distribution of agents:

Societal evolution through crossover of Genetic Attributes in Sexual Reproduction under rules ({G1}, {M, S}) coloring by agent vision:

Cultural transmission by tag-flipping under rules ({G1}, {M, K}) coloring by tribes:

Combat between two tribbes under rules ({G1}, {Cinf}), with various outcomes: a) coexistence between Blue and Red b) Red dominance c) Blue dominance:


Trench war and front line between two tribes fighting under rules ({G1}, {C2, R[60, 100]}) coloring by tribes:

Combat eliminates waves under rules ({G1}, {C2}):

Combat and Cultural Transmission under rules ({G1}, {Cinf,K}):

A realization of the Proto-History under rules ({G1}, {M,S,K}) and random distribution of agents, showing: migration, spatial segregation, mating, cultural transmission and finally tribes interaction such as collisions, penetrations, and conversions producing complex social histories :

Instructions

Install Python 2.6 and above: https://www.python.org.
Install Pygame 1.9 package: http://www.pygame.org.
On command schell, execute: python sugarscape.py.
Edit sugarscape.py and uncomment settings for the wanted simulation, run again.

Available controls during simulation:
  • [F1] : show current agents population.
  • [F2] : show current agents whealth histogram.
  • [F3] : show current agents metabolism and vision mean values.
  • [F12] : start / pause / resume simulation.

Todo

  • Trading rules.
  • Diseases.

Reference

  • Schelling, Thomas C. (1978). Micromotives and Macrobehavior, Norton.
  • Epstein, Joshua M.; Axtell, Robert L. (1996). Growing Artificial Societies: Social Science From the Bottom Up, MIT/Brookings Institution.

sugarscape's People

Contributors

langerv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.