🐰 🐺 UI for world simulation of Wolves, Rabbits and Carrots in Elixir.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
docs
lib
priv/static
test
web
.buildpacks
.gitignore
License - MIT.md
Procfile
README.md
brunch-config.js
deploy.sh
elixir_buildpack.config
mix.exs
package.json

README.md

wolves-and-rabbits-world-simulation-ui

Description

This is an UI for a server implementation from an assignment described by Francessco Cessarini here.

A textual description:

We had to implement a simulated world inhabited by carrots, rabbits, and wolves. Rabbits would roam this world eating carrots that grew in random patches. When they had eaten enough carrots, the rabbits would get fat and split in two. Wolves ran around eating up the rabbits; if they managed to catch and eat enough rabbits, they would also get fat and split. Rabbits and wolves within a certain distance of each other would broadcast information on food and predators. If a rabbit found a carrot patch, other rabbits would quickly join him. If a wolf found a rabbit, the pack would start chasing it.

UI

Simulation in action

How to build and run it locally?

  1. mix phoenix.server

Deployment on Heroku

  1. heroku login
  2. heroku create
  3. heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
  4. heroku config:set HEROKU_APP_NAME=$(heroku apps:info | grep === | cut -d' ' -f2)
  5. heroku config:add DATADOG_API_KEY=<YOUR-API-KEY>
  6. git push heroku master
  7. heroku ps:scale web=1
  8. heroku open

Assets

Graphics

All sprites were made by me.

Favicon is available here.

Music

Music is created by Eric Skiff and provided also on Creative Commons Attribution license.