Giter VIP home page Giter VIP logo

emojiconomy's Introduction

Emojiconomy

πŸŒΈπŸ‡πŸˆπŸ‰πŸŠπŸ‹

A project for Procjam 2019.

This program uses a graph grammar to generate diagrams of the flow of goods in a toy economy. Plants are eaten, or processed into food and materials. Ore is mined, refined, and made into machines.

Goals

  • Generate a graph with all the components of the economy labelled with emoji.
  • Calculate max-flow given a restricted amount of source capacity.
  • Generate a utility function that rewards consumption of multiple types of goods. (Maybe label some as substitutes or complements in the graph.) Figure out how to calculate a flow that maximizes this utility.
  • Duplicate the economic graph and disable parts of it to generate isolated economies that would benefit from trade.
  • Create trading routes between the economies.
  • Cute web page that animates the result.

To Run

Emojiconomy uses pipenv. Run

pipenv install
pipenv run python -m emojiconomy.planets

The files econ-full-flow.svg and econ-full.svg will show the full economy and its optimal solution. There will be a lot of debugging output as the auction mechanism is run. The files step-NN-PPPP-flow.svg show intermediate steps for planet/region PPPP after NN auction rounds.

When the auction is completed (200 rounds) the final output will be:

  • econ-PPPP-flow.svg: planet PPPP's economic flow
  • planet-trade.svg: graph showing all trades
  • galaxy.pickle: pickled version of the final state

Talks

I will be presnting a lightning talk on Emojiconomy at Roguelike Celebration 2020.

emojiconomy's People

Contributors

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