Giter Site home page Giter Site logo

game-theory-simulator's Introduction

game-theory-simulator

2d expanded Prisoner's dilemma simulator.

install and run

to install this simulator, you need

  • common-lisp (I tested sbcl 1.3)
  • SDL environment (this simulator depends to lispbuilder-sdl)

the way to running this simulator

  1. inform where this directory is to the ASDF/common lisp (push #P"/where/this/directory/game-theory-simulator/" asdf:*central-registry*) don't forget end of path-string '/'

  2. using asdf loadsystem to load this package (asdf:operate 'asdf:load-op :GAME-THEORY-SIMULATOR)

  3. in to package (in-package :game-theory-simulator)

  4. to run simulator, (UI)

rule

-------
|A|A|A|
-------
|A|@|A|
-------
|A|A|A|
-------
  • A or @ means plant planted in cell.
  • each cell has energy to feed plant.
  • plant deel energy to adjoing plants
    • deel is cooperation or betrayal
    • after deeling, plants get energy rerated to gain table
    • gain table is shown in src/rule.lisp of energy-coefficient-list
    • in default rule of 4e2165e , it is very lucrative to betrayal nist
  • energy of the cell is too lower than adjoining cell, plant of the cell is changed to highest energy plant.
  • plant memories strategies of adjoining plants
    • plant can decide deel (cooperation or betrayal) refer to memories

simulation results

documents directory (todo)

todo

  • executeable file
  • javascript GUI
  • more useful GUI
  • debug / source refactoring
  • Consideration by many rule-parameters
  • to configure rules easily
  • documentations of Prisoner's dilemma

game-theory-simulator's People

Contributors

i-makinori avatar

Stargazers

 avatar

Watchers

 avatar  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.