Coder Social home page Coder Social logo

skywarth / fenrir-wolfpack-simulator Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 541 KB

Simulating wolfpack behaviours and future of the pack in an environment using Javascript and data trees.

Home Page: http://www.fenrir.yigit.kim

License: MIT License

HTML 6.27% JavaScript 93.73%
javascript wolfpack simulation simulations data data-structures max-heap

fenrir-wolfpack-simulator's Introduction

Fenrir Wolfpack Simulator

alt text

npm version GitHub version Licence Known Vulnerabilities Codacy Badge Maintainability

Fenrir is an assistant to prognosticate the future of a wolfpack using vanilla Javascript and data structures.

Simulation and prediction includes:

  • Changes in the environment
  • Health and status of individual wolves
  • Disease conditions of each wolf
  • Weather events and effects
  • Alpha rankings in the pack
  • Mortality status of pack members
  • Wild card encounters (triggered by scout event)
  • Meat distribution
  • Regular events
  • Irregular events

Installation

npm i fenrir-wolfpack-simulation

Demo

http://fenrir.yigit.kim/

Demo of the current version doesn't have proper UI or interface design. To be designed in the future.

Current Version

Includes:

  • Max-heap tree for alpha determination and food distribution.
  • Regular Events.
  • Environment module (partial).
  • Constant parameters module.
  • Modifiers module for chance and likelihood calculation.
  • Variable parameter module.
  • Wolf data module.
  • Simulation module (initiating the simulation and generating reports).

Brief capabilities:

  1. Create environment and it's object (input).
  2. Create one or more wolf objects (input).
  3. Calculate 7 hunt parameters which affect hunt success chance.
  4. Determine alpha of the pack considering alpha points calculated.
  5. Placement of wolf objects to max-heap tree according to alpha points.
  6. Hunt event conclusion.
  7. Food distribution order in pack.
  8. Weather event trigger.
  9. Scouting and results. (partial)
  10. Basic simulation loop.

License

Licenced under the MIT License

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.