GithubHelp home page GithubHelp logo

arainsd / econsim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from omikun/econsim

0.0 2.0 0.0 34.01 MB

Agent based economic simulator in unity

License: MIT License

C# 76.45% ShaderLab 20.43% HLSL 3.12%

econsim's Introduction

ECONSIM

An agent-based economy simulator in Unity3D based on "Emergent Economies for Role Playing Games" and bazzarBot.

Screen Capture

Features:

  • Agent-based price beliefs that governs price range to in bids.
  • Price beliefs are adjusted based on the success of each bid and the price trends of the commodity.
  • Commodity dependencies - If food is dependent on wood and there is a forest fire, the supply of wood drops and the price of food sky rockets. Non-farmers go bankrupt as a result.
  • Double-blind auction - all sellers enter their asking price and all buyers enter their asking price blindly for the current round but has access to historical data.
  • Agents that go bankrupt respawn in a more lucrative profession; corollary: bankruptcy drives growth.

Roadmap:

  • Taxes - A government collects taxes on all agents, uses money to help bankruptcy or stimulate economy, can also make loans.
  • Banks - can make loans based on leverage ratio, create credit bubbles.
  • Agent development - agents invest surplus cash to develop new production abilities to become bigger, may develop scaling overheads.
  • Mergers - agents can buy competitions out.
  • Foreign markets - multiple instances of auction houses with its own set of agents and its own set of commodities.
  • International trades - agents can make trades in foreign markets; local markets may impose import tariffs (player's choice).
  • Separate currencies - each market has its own set of currencies; inflation rate; exchange rate.

Instructions:

  • Download Unity3D Personal Edition
  • Download this repository
  • Open folder in Unity
  • Press Play button

Number of agents and init conditions can be found in the "auction house" game object properties in the Inspector panel. Commodity dependencies and info are in the Commodity.cs file

This code is released under the MIT license.

econsim's People

Contributors

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